When I had nothing to do at night, I suddenly wanted to test the connection speed improvement caused by the ADO. net connection pool. I wrote the following:Code:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
1
Using
System;
2
Using
System. configuration;
3
Using
System. Data. sqlclient;
4
Using
System. diagnostics;
5
Early to hear that is C + + running speed than C is a lot slower, so write a small program to test, in the end how slow.1#include 2#include 3#include string.h>4 intMain ()5{clock_t a=clock ();6 inti,j,k;7 Charc[10000]={"ASSDASDXZCZASDXZCZZSDAAAASDXZCZZSDAAAZSDAAAAAAAAAAAAAASDASFSDXZCZZSDAAAAAAAAAAAAAASDASFZVFASDQWEASFASSDXZCZZSDAAAAAAA AAAAAAASDASFZVFASDQWEASFASSDXZCZZSDAAAAAAAAAAAAAASDASFZVFASDQWEA
As mentioned earlier, it is possible to optimize only if we find code that affects speed. The Benchmark_timer class and Benchmark_iterate class in the Pear benchmark package can be used to easily test the speed of script execution. (For pear installation and configuration, please check the relevant information yourself).
First, use the Benchmark_iterate class to
Reference1:http://server.chinabyte.com/495/12361995.shtmlreference2:https://www.deleak.com/blog/2011/11/05/big-penis-lol/Learn two special devices first/dev/null pseudo-device, Recycle Bin. Writing the file does not generate IO/dev/zero pseudo-device generates an empty character stream, which does not produce IOTest method:A. Test disk IO write speedTime DD If=/dev/zero of=test.dbf bs=8k count=300000B. Test
Recently, it was found that the attachment download speed of the blog garden is much faster. It is said that the website has been migrated to the new IDC. So I wrote a little stuff to test the download speed of a single thread.
After one night, share the test result-the CDN bandwidth seems not cheap ~~ We will not
Using the ping command to test the network speed is the basis of this method. Let's first take a look at: network speed test-Ping Command help instructions www.2cto.com C: \ Documents and Settings \ Administrator> ping /? Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-I TTL] [-v TOS] [-r count] [- s count] [[-j host
These two days want to add a floating button in the Web page, click the button to scroll to the bottom of the page. on-line Bing searched for a bit, mostly jquery.I want pure JavaScript, have to DIY. Test normal under IE9, 11,maxthon 1.6.7,firefox30, 31,360 Speed browser 7.5.3.308.The difficulty is that setscrollbottom this function.According to the general wording:function Setscrollbottom (value) {if (Docu
0.PCATTCP Introduction
PCATTCP's predecessor, Test Tcp,test TCP, is the native tool of the BSD operating system, which uses the console input parameters to test TCP or UDP communication speed. The project was launched in 1984 and the source code for the tool is now open. PCATTCP is the Windows ported version of
Use php to test the hard disk write speed. Copy the code as follows :? Phpset_time_limit (0); $ strstr_pad ($ str, 512,0); $ filefopen (. temp, a +); $ i0; $ bytes1000000000; $ mygabyte $ bytes1000000; E
The code is as follows:
Set_time_limit (0 );$ Str = str_pad ($ str, 512, "0 ");$ File = fopen ("./temp", "a + ");$ I = 0;$ Bytes = 1000000000;$ Mygabyte = $ bytes/1000000;Echo "
1. dd command description: if = input file, of = output file, ibs = number of bytes read at a time, obs = number of bytes written at a time, bs = set the number of bytes read and write at a time, skip = number of bs skipped, count = number of copies 2. use/dev/null and/dev/zero1. to regard/dev/null as quot; Black Hole quot;. it is equivalent to a write-only file, and all content written to it will be lost forever.
1. brief description of the dd command:
If = input file, of = output file, ibs
the end point of the program execution. Getprofiling () is used to obtain the analysis information. The time consumed by program execution between two tags is calculated using the timeelapsed () method (like the loop in the example ). Finally, use print_r () to output the information to the screen:
0 1 2 3 4 5 6 7 8 9
Time elapsed: 0.000594
Array
(
[0] => Array
(
[name] => Start [time] => 1085730111.27175200 [diff] => - [total] => 1085730111.271752
)
[1] => Array
(
[name] => start_myFun
,t.parse_calls,t.exe cutions from v $ SQL t where SQL _text like '% insert into t values % ';
To facilitate viewing the preceding statements executed by PL/SQL DEVELOPER, for example:
As you can see from the above, every statement is parsed only once and executed once. A total of 0.1 million records are parsed. Maybe you will ask you that there are only 7136 rows of records above, how did you resolve it for 0.1 million times. I can tell you that it must have been resolved for 0.1 million time
seconds.
Using Windows is primarily convenient and security can also be done well
With Linux is tough, but not too convenient ah, weighed down. When someone else is off work, you may still be doing VI. Forget it, install Windows ... Ha ha
-----------------------------the next day's split line-----------------------------
Today want to curse, because just now found yesterday the test data are inaccurate.
Ignore the network card traffic is full.
Bec
Paip. Test the hard disk color and speed
Author attilax, email: 1466519819@qq.com
1. Hard Disk data read/write error rate, if it is high, there must be a problem----------------------Hdtune> HealthYou only need to pay attention to the relationship between "data" and "threshold", that is, the relationship is greater than or less than. Once you find a "data" on your hard disk"
When it is less than the "thresh
Tip: you can modify some code before running Test the speed of your image site Test the connection speed of the image site I often see the so-called connection speed on the webpage for several seconds. Does it feel very advanced? In fact, it is not diffic
Pcattcp is a good software for testing lan network speed. The following describes how to use it:
1. Server
Run the following command on the server:
C:/> pcattcp-R
The prompt is as follows:
Pcausa test TCP utility v2.01.01.08
TCP receive Test
Local host: WWW-B722D776BC1
**************
Listening...: on port 5001
The prompt shows that the server h
coincides with the Mid-Autumn Festival, the whole nation with celebration! But in this happy day, prepare for the computer second-level examination of children's shoes, is not a little faint tension ah? is not all in the heart meditation: Beg, Beg, Amen! in order to help children's shoes to better prepare for the upcoming exam,51CTO College's small series of carefully for the children's shoes prepared for the four major teacher Sprint course package, and limited time offer Oh! Miss this time, so
As mentioned above, we can only optimize the code that affects the speed. The Benchmark_Timer class and Benchmark_Iterate class in the benchmark package of PEAR can be used to conveniently test the speed of script execution. (For installation and configuration of PEAR, see relevant information ).
First, use the Benchmark_Iterate class to
Test and analysis of the speed of extracting core function from PHP data acquisition
As a result of the program needs, the PHP acquisition of character extraction in the core of the implementation of the speed test.
Three of the most common extraction methods were tested:
Method One:
Require "class.debug.php";
function
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.