/getrows/show2.asp
It takes 2,187.500 milliseconds, and the total test average is about 2 seconds.========================================================== ========================The preceding two methods cannot completely solve the problem of long execution time. The main reason is that each cycle must extract records from the database (the Command speed is relatively fast)Use the GetRows () method:Copy
Php test hard disk write rate. Use php to write a 1 GB file, check the hard disk write rate, there may be some errors, it is recommended to use a professional hard disk testing tool to detect general computer read and write in 20 Ms, this is a 1 GB file written in php. check the hard disk write rate, which may have some errors,
We recommend that you use professional hard disk testing tools for testing.
Generally, the computer reads and writes at 20 M
Data | Speed
Existing 10W data, Access database save
Through normal extraction:
Set conn= Server.CreateObject ("ADODB.") Connection ")ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" server.mappath ("Db2.mdb")Conn. Open ConnStrSet rs = Server.CreateObject ("ADODB.") Recordset ")sql = "SELECT * from people ORDER by id DESC"Rs. Open sql,conn,1,1Do but not Rs. EofResponse.Write RS ("id") | "Rs. MoveNextLoop%>
Takes 3,250.000 milliseconds wit
%>
Http://www.cnbruce.com/test/getrows/show2.asp
Takes 2,187.500 milliseconds with a total test average of about 2 seconds
=========================================================
Neither of these can solve the problem of long execution time, the main reason is that the loop must be extracted to the database every time (command speed is relatively fas
This article mainly introduces the speed test and comparison code for various encryption algorithms and Hash algorithms in PHP. If you want to select an encryption algorithm, you can consider it as a performance factor. For more information, see
This article mainly introduces the speed test and comparison code for vari
Test and Analysis of the speed at which PHP collects data to extract core functionsAs the program requires, the execution speed of the core part of character extraction in PHP collection is tested.Three Common extraction methods are tested:Method 1:Require "class. debug. php ";Function getContent ($ sourceStr){$ Content = strstr ($ sourceStr, '');$ Content = subs
I tested the run time of fractional operations (http://www.cnblogs.com/YangXiaomoo/p/6095583.html) using the Ptime command under DOS. The test results are generally between 0.212 and 0.217. Such as. I then added the following code in the main functionThread.CurrentThread (). Sleep (1000);//Suspend threadAs a result, the entire program ran for more than a second, such as.SummarizeIn the program, the artificial addition of some time delay can make the p
The efficiency of foreach is much higher than that of for. a major reason may be that for has to perform many conditional judgments. So foreach can be used in the future, which can increase the efficiency by one time. Experiment is an important way for me to learn computer science. Computer science is not a simple intelligent game, but a tool to transform the world. Mathematical and experimental methods are the basic methods of computer research, and also the basic methods of learning. mathemati
Test method:Stopwatch SW =NewStopwatch (); SW. Start ();stringTMP =""; StringBuilder SB=NewStringBuilder (); for(inti =0; I 10000; i++){ //tmp + = "|" + i;Sb. Append ("|"); Sb. Append (i.ToString ()); //tmp = string. Format ("{0}{1}{2}", tmp, "|", i);}SW. Stop (); Console.WriteLine (sb.) ToString ()); Console.WriteLine (SW. Elapsedmilliseconds); Console.read ();View CodeCreate a For loop of 10,000 times, add the number of I and divide it by |Dif
The ASP realizes the test speed with the progress bar. Save the following code as XXX. ASP files, on your server can be run directly.
Response.Expires = 0Response.ExpiresAbsolute = Now ()-1Response.AddHeader "Pragma", "No-cache"Response.AddHeader "Cache-control", "private"Response.CacheControl = "No-cache"%>DEFAULTFS = 200 ' data default size (K)MINFS = 100 ' data minimum valueMAXFS = 500 ' data Highest val
(' head ') [0] | | Document.documentelement;} else {D = document.documentelement;}D.insertbefore (c, D.firstchild); /* Call the InsertBefore method to insert the newly created script label as the first child element.}
* * Here the curly braces play the Code fragment grouping function.{C.setattribute (' type ', ' text/html ');C.setattribute (' style ', ' display:none; ');C.setattribute (' CharSet ', ' gb2312 ');C.setattribute (' id ', b);C.setattribute (' src ', a);}
return C; /* Return to c
This is a specialized programming language/compiler speed test/comparison site (http://shootout.alioth.debian.org/) Given the question,
The following is the source code of EF:
// Binary-treespublic class startup class
This EF program runs on my machine for about 108 seconds.The optimized vc6 takes about 6.9 seconds.
Other Programming Language/compiler performance, please see here: http://shootout.alioth.
Speed////////////////////////////////////////////////////
{The client template for testing}
////////////////////////////////////////////////////
////////////////////////////////////////////////////
{The code for each script you tested}
////////////////////////////////////////////////////
//--------------------------------------------------
Test-js.asp
Use an array to collect all the character channeling
After testing:
Http://www.leadbbs.com/test?name=test
The speed of request ("name") is very fast, when the requested URL is
http://www.leadbbs.com/test? When
Request ("name") slowed down nearly 20 Laibe.
Here is the test code, saved as Test.asp
In practice, our r
1. The root privilege, CENTOS7 system is used here.2. Run wget https://github.com/sivel/speedtest-cli/archive/master.zip #下载测速文件到当前目录 3.mkdir Cesu #新建测速文件夹4.unzip master.zip-d cesu #把master. zip to the speedometer folder, prompting for a Yum install if Unzip is not installed unzip5.MV speedtest_cli.py/usr/bin #需要把解压到测试目录里面的可执行脚本speedtest_cli. py Move to the/usr/bin/folder (not the root permission, you need to use the chmod command to add an executable permission)6. Direct command speedtest_cli.
Usually we need to optimize the function, the general practice is to get the time at the beginning, the end of the time to get a second, two times to subtract time to the time to spend. And the function runs fast, basically is the millisecond level.
The function given below is intended for this purpose.
Time to timestamp (milliseconds)
function Time2stamp () {
var d = new Date ();
Return Date.parse (d) +d.getmilliseconds ();
}
Usage:
var T1 = Time2stamp ();
Compares the
Program running Speed test results:
1. The same branching condition is judged: IF is slower than select.
Test with the following program:
Dim tttt1,ttt2
Session ("II") =0
For Sn=0 to 5
Ttt1=now ()
For I=0 to 300000
If session ("II") =0 Then
Session ("II") =1
Else
If session ("II") =1 Then
Session ("II") =2
Else
If session ("II") =2 Then
Session ("II") =3
Else
Ses
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.