A recently written software, compare the execution efficiency of c#, c++, DELPHI, VB, easy language, PYTHON, PHP, etc.

A recently written software, compare the execution efficiency of c#, c++, DELPHI, VB, easy language, PYTHON, PHP, etc.

When I was doing coal blending software, I wrote the same algorithm in different languages. Facts have proved that: C# is at least 10 times slower than C++ in execution efficiency, about 8-9 times slower than DELPHI, and about 2-3 times faster than VB. There are hundreds of billions of operations in the calculation, and the execution efficiency of the final result is as shown above. I also made easy language, PHP, and PYTHON version of coal blending software. It turned out that no language is better than C++. Finally, I used DELPHI, because DELPHI can complete the calculation within 1-3 minutes, and PHP If it is not calculated within 15 seconds, it will directly report an error, and the execution efficiency of Easy Language and VB is similar. 220 solutions #1 You cannot be an expert in so many languages ​​by yourself. For the same algorithm, each language also has its own unique optimization method, so what you say cannot be recognized by everyone. #2 Reply quoted from floor 1: You cannot be an expert in so many languages ​​by yourself. For the same algorithm, each language also has its own unique optimization method, so what you say cannot…

Scripting languages ​​Scripting languages: Shell, JavaScript, VBScript, Perl, PHP, Python, Ruby, Lua

I have been researching scripting language and other issues today, and I just have the opportunity to share it with you this morning. Scripting language: Shell, Javascript, Vbscript, Perl, PHP, Python, Ruby, Lua the the Job control language and shell Shell script Such scripts are used to automate job control, the act of starting and controlling system programs. Most scripting language interpreters are also command-line interfaces, such as the Unix shell and MS-DOS command. Others, such as AppleScript, can add a scripting environment to the system, but there is no command line interface. The detailed categories are: 1.4NT 2. AppleScript 3. ARexx (Amiga Rexx) 4. bash 5. csh 6. DCL 7. JCL 8. ksh 9. Cmd.exe batch (Windows, OS/2) 10. command batch (DOS) 11. REXX 12. tcsh 13.sh 14. Winbatch 15. Windows PowerShell 16. Windows Script Host 17. zsh GUI script The emergence of GUI brings a professional scripting language for controlling computers. It interacts between the user and the graphical interface, menus, buttons, etc. It is often used to automate repetitive actions, or to set a standard state. In theory it can be used to control all applications running on a GUI-based computer, but in fact whether these languages…

hot3.png

C, go, python, java, php and node.js simple loop accumulation operation speed test [test demo is for reference only]

2019 Unicorn Enterprises Hiring Python Engineer Standards>>> Before I did a simple page test of node.js and python “hello ***”, and also did a loop test, This time, the java language and go language are mainly added. Mainly I want to see the speed of the four mainstream scripts java, python, php, and c languages. Both use a for loop for a simple cumulative test. Personal skills are limited, so I only did a simple test for reference. The experimental environment uses linux 64-bit server, the operating system is contos 5.4, php version 5.1.6, python version 2.6.6, node.js version 0.4.12, java version 1.6.0_03, gcc version 4.1.2 2008070, go language 1.0.2. 1. Scriptingphp script # cat test.php 1 2 3 4 5 6 7 <? $m=0; for (;$i<10000000;$i++) { $m=$m+$i; } echo $m; ?> td> python script # cat test.py 1 2 3 4 5 6 7 8 9 10 #!/bin/env python #-*- coding:utf-8 -*- def main(): j = 0; for i in xrange(10000000): j=j+i print j if __name__==”__main__”: main() node.js script # cat test.js 1 2 3 4 5 var j=0; for (i = 0; i <10000000; i++ ) { j=j+i } console.log(j); Java code: # cat Test.java 1 2…

pythonphp performance comparison_golang, python, php, c++, c, java performance comparison

Original title :golang, python, php, c++, c, java performance comparison 2017 golang, python, php, c+& #43;, c, java, Nodejs performance comparison When I was in PHP/C++/Go/Py , Make a simple comparison of the performance of the programming language , As for how to compare , I still have to use the magical Fibonacci algorithm. It may be more commonly used or fun. Okay,talk is cheap, show me your code! Turn on Mac,Click on Clion to start Coding! 1. Why is the first What about Go,Because I personally use it recently,It feels very good package main import “fmt” func main{ fmt.Println(fibonacci(34)) } func fibonacci(i int ) int{ if(i<2){ return i; } return fibonacci(i-2) + fibonacci(i-1); } Take a look with Go1.7 first&#xff1a ; qiangjian@localhost:/works/learnCPP$ go version && time go build fib.go && time ./fib go version go1.7.5 darwin/amd64 real 0m0.206s user 0m0.165s sys 0m0.059s 5702887 real 0m0.052s user 0m0.045s sys 0m0.004s Then ,Look at 1.8: qiangjian@localhost: /works/learnCPP$ go18 version && time go18 build fib.go && time ./fib go version go1.8 darwin/amd64 real 0m0.204s user 0m0.153s sys 0m0.062s 5702887 real 0m0.051s user 0m0.045s sys 0m0 .003s I can’t see the difference,but the official 1.8 has improved 20% in GC, Compile, etc.,Maybe this…

[Featured March 1 news]: PHP, Perl,  Python, Ruby function comparison

[Selected newsletter on March 1]: PHP, Perl, Python, Ruby function comparison

php tutorial|php manual March, 1st, Newsletter, Featured, PHP, Perl, Python, Ru php tutorial -php manual simple picture website source code, vscode awesome plug-in, ubuntu print lock, handwritten tomcat goo, centeros crawler, php moodle, Hubei seo promotion manufacturer quotation, website scroll code at the bottom, how to optimize website template Selected] is a special column launched by the CSDN R&D channel. Every day we will select valuable news briefs from foreign technical media (such as Hacker News, Reddit…etc.), so that you can grasp the mainstream news of the industry in the first time Technical Digest, presents you with the first technical breakfast every morning. [01] Explanatory language: PHP, Perl, Pythcreateprocess source code, ubuntu swipe the network card id, tomcat puts the public package, black myriad crawler, php adds books successfully, how to do Baidu bidding ranking seolzwfileserver source code download, ubuntu setting interface is missing, The storage capacity of the tomcat server, crawlers encounter floating tags, php cannot receive ios array parameters, beginners seo tutorial lzw Introduction: Daily [Express Selection] is a special column launched by CSDN R&D channel, Every day, we will select valuable news briefs from foreign technical media (such as Hacker News, Reddit, etc.), so that you can…

Insert picture description here

Java, Python, C++, PHP and JavaScript, which programming language should we choose?

Sometimes,we all make short-term and long-term plans for our future,in order to achieve the goals we have set. And for some people who are very interested in programming languages,How to choose a suitable Your own programming language is the most important. I believe that programmers will not be unfamiliar with programming languages ​​, because they are used every day to carry out complicated work in their hands. However, for beginners & #xff0c; there are still some questions “what programming language should I learn?” So let’s take a look at what the following five programming languages ​​are mainly for? p> 1.Java Java has the characteristics of cross-platform, object-oriented, and generic programming ,very popular among enterprises,Widely used in enterprise-level Web application development and Mobile application development. Java has developed to the present , According to the application, it is mainly divided into three major blocks :J2SE, J2ME, and J2EE. The three pieces have different application scopes,but complement each other. Widely used in PCs, data centers, game consoles, scientific supercomputers, mobile phones and the Internet , also has the world’s largest developer professional community. Java develops along with the rapid development of the Internet,has gradually become an important network programming language. 2.C/C++ C…

This blog records my advanced path (PHP, C, Python, Erlang)

Strengthen yourself!make money,renovate,marry a daughter-in-law!! Transfer: https://www.cnblogs.com/JohnABC/ p/3243778.html

Python crawls and changes pages_python, web crawler_How does a Python crawler get the URL and web content of the next page?  , python, web crawler, htmlphpStudy…

Python crawls and changes pages_python, web crawler_How does a Python crawler get the URL and web content of the next page? , python, web crawler, htmlphpStudy…

How does a Python crawler get the URL and content of the next page? Use BeautifulSoup to crawl the content of the first page,but I don’t know how to crawl the rest of the pages. The homepage link is long like this : http://gdemba.gicp.net:82/interunit/ListMain.asp?FirstEnter=Yes&Style= 0000100003&UID={A270A117-76A7-4059-AB8F-B11AC370240B}&TimeID=39116.81 By clicking a “backward page” gif picture button to jump to the next page: The link to the second page is like this : http://gdemba.gicp.net:82/interunit/ListMain.asp?Keywords=&Style& #61;0000100003&DateLowerLimit= 2000-1-1&DateUpperLimit= 2015-9-11&DateLowerLimitModify= 2000-1-1&DateUpperLimitModify= 2015-9-11&Classification1=0&Classification2=0&Classification3=0&Classification4=0&Classification6=0&Classification7=0&Classification8=0&Class=&Department=001&CreatorName=&CreatorTypeID& #61; &UID={A270A117-76A7-4059-AB8F-B11AC370240B}&SortField=&CustomCondition=&PageNo=2&TimeID=39453.14 How to observe the law of the URL here&#xff1f ; The link to “Turn a page back” is as follows : οnclick=”Javascript:window.location.href= 'ListMain.asp?Keywords=&Style=0000100003&DateLowerLimit= 2000-1-1&DateUpperLimit= 2015-9-11&DateLowerLimitModify= 2000-1-1&DateUpperLimitModify= 2015-9-11&Classification1= A270 A117-76A7 -4059-AB8F-B11AC370240B}&SortField=&CustomCondition=&PageNo=3&TimeID=39509.16' ; “> WIDTH=”16″ HEIGHT=”16″> How to get it What about the URL and content of the next page? I can add more information if necessary. Supplementary code : import urllib import urllib2 import COOKIElib import re import csv import codecs from bs4 import BeautifulSoup COOKIE = COOKIElib.COOKIEJar() opener = urllib2.build_opener(urllib2.HTTPCOOKIEProcessor(COOKIE)) postdata = urllib.urlencode({ 'LoginName' :'02', 'Password':'dc20150820if' }) req = urllib2.Request( url = 'http://gdemba.gicp.net:82/VerifyUser.asp', data = postdata ) result = opener.open(req) for item in COOKIE: print 'COOKIE:Name='+item.name print 'COOKIE:Value === ' 39;+item.value result = opener.open('http://gdemba.gicp.net:82/interunit/ListMain.asp?FirstEnter&#61 ;Yes&Style=0000100003&UID={4C10B953-C0F3-4114-8341-81EF93DE7C55}&TimeID=49252.53') info = result.read() soup = BeautifulSoup(info, from_encoding=”gb18030″) table…

[One-week class schedule Mid-Autumn Festival gift 9.2% off] The fourth certification exam, java, python, php, mobile development, system operation and maintenance, blockchain [Share learning experience and technical books/customized T-shirts/purchase vouchers/membership vouchers]  )

[One-week class schedule Mid-Autumn Festival gift 9.2% off] The fourth certification exam, java, python, php, mobile development, system operation and maintenance, blockchain [Share learning experience and technical books/customized T-shirts/purchase vouchers/membership vouchers] )

【One week schedule】: [One-week class schedule] is a new learning column program launched by CSDN Academy , the purpose is to lead everyone to learn some courses together, study hard The students will receive a small reward gift from CSDN Academy : technical books/CSDN Academy custom T-shirt. Rules : Publish course learning experience in the comment area below , Choose the best and give CSDN Academy learning rewards small gifts , Publicity in the list article. The winning user of the previous issue :weixin_42823949 (contact the prize distribution administrator WeChat meiyaya2871 to receive ) 【Class Schedule】 Classification Course Name Course Link Programming Language Java MyBatis practical introduction video course https://edu.csdn.net/course/detail/9438?utm_source=blog11xk Java web crawler basics and actual combat https://edu.csdn.net/course/detail/9428?utm_source= blog11xk Play JAVA 一:JAVA Introduction https://edu.csdn.net/course/detail/9420?utm_source=blog11xk SSM CSV file import and export practice for integrated development https://edu.csdn.net/course/detail/9419?utm_source=blog11xk SpringBoot+elasticsearch+JerseyRESTful+redis blog system https://edu.csdn.net/course/detail/9415?utm_source=blog11xk SpringMVC&MyBatis Student Project Department https://edu.csdn.net/course/detail/9399?utm_source=blog11xk Ubuntu builds a Java development environment https://edu.csdn.net/course /detail/9396?utm_source=blog11xk Java Intermediate Course Linux https://edu.csdn.net/course/detail/9390?utm_source=blog11xk Python Expert strength science popularization :five places where Python can be used ! https://edu.csdn.net/course/detail/9434?utm_source=blog11xk Follow Mr. Wang Jin to learn to develop Python :Basic strengthening case explanation https://edu. csdn.net/course/detail/9414?utm_source=blog11xk Learn to develop Python with Mr. Wang Jin= xff1a;Basic entry case explanation https://edu.csdn.net/course/detail/9413?utm_source=blog11xk PHP…

Insert picture description here

What are the uses of the popular Java, Python, Javascript, and PHP?

Using any programming language to develop a program , is to let the computer do the work , such as writing an article , downloading an MP3, etc. , Know the instructions of the machine. So & # xff0c; Although different programming languages ​​are very different & # xff0c; In the end, they all have to be “translated” into machine instructions that the CPU can execute. In theory, almost anything can be done in any language , but what is the main purpose is different. For those who have just entered the IT industry ,maybe only know what the corresponding salary is for a certain language, But I don’t know what the main job is… let alone consider the direction of future career development. What are Java, Javascript, C, C++, PHP, and Python used to develop? The following will explain these programming languages ​​in detail. C and C++++ C/C++Theoretically you can do any development, as long as you have the right hardware Drivers and API, are characterized by high efficiency, are basically the most efficient in compiled languages. Unless you don’t even have a C/C++ compiler in your system. In some systems, C++compilers are not available,but C is generally available.…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索