Recently bought a 256GB SSD SSD, want to test the write speed, so the following operation.Part of the code:1Gettimeofday (start, NULL);2 intFD = open ("Test1.dat", o_rdwr|o_creat);3 if(FD 0){4printf"Open error!\n");5 return 0;6 }7 //Lseek (FD, 0, seek_set);8 Write (FD, PData, Data_len);9 Close (FD);TenGettimeofday (end, NULL); One A //display elapsed time in US -diff =1000000* (END.TV_S
I. File Read speed
In Linux, reading files is implemented by calling sys_read (FD, Buf, count) by the system. Therefore, to increase the speed, it is the simplest way to call the sys_read encapsulation, for example, read () or fread () is used directly (). Below are some tests in Linux.
First create a 130m data file dd If =/dev/Zero of = data BS = 1024 k count = 130
[Dd If =/dev/Zero of = data BS = 1024 k c
File: vgaspeed.txtName: test the speed of the vga12h ModeAuthor: zyl910Blog: http://blog.csdn.net/zyl910/Version: V1.0Updata: 2006-11-14
Download (note the modified extension)
Introduction~~~~I 've written a lot of screen writing code in DOS, but I never thought of a problem-there are multiple VGA operating speeds. Therefore, I wrote a small program to test the V
longer to perform the first CRUD operation, and the later time will be much shorter. This is because Microsoft SQL server has a cache and you can remember our previous operations, the execution speed will be greatly improved in subsequent operations.
Next let's take a lookSqldatareader:
At this time, if the database table suddenly adds records, let's look at the query time:
Result: adding a record does not affect the database query.
In many cases, we need to test the uplink and downlink bandwidths of Linux servers. Speedtest.net may be one of the most widely used websites that can be used to test the bandwidth speed ;. Speedtest.net provides a command line version mdash; speedtest-cli. The following shows how to use speedtest-cli in Linux command line to
Use JS to test the target website's open response speed and js target
I wrote a simple test directory website opening speed item using JS. Note that this is only the speed at which the local directory website is opened. It does not mean that other users can open the director
Speedtest.net server list ...Selecting best servers based on ping ...Hosted by ShenZhen Telecom (ShenZhen) [0.00 km]: 1118.768 msTesting download speed ....... ....... ................. .............................download:4.65 Mbit/sTesting upload speed ................................................................................................upload:9.15 Mbit/sUsing the--share parameter, the
Test the hard disk read/write speed in linux.
After buying an ssd hard disk, I want to compare it with an ordinary mechanical disk. Because the desktop is installed with the ubuntu system, I just want to use the linux Command for a simple test.
The following are ssd performance data:
Test write:
xxx@WaitFish:~ > time
Run the dd command in CentOS to test the read/write speed of the USB flash disk.
1. Brief description of the dd command:
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/zero
1. Think of/dev/null as a "black
1. DD Command Brief:if= input file, of= output file, ibs= bytes read at a time, obs= write bytes at a time, bs= set the number of bytes written at one time, skip= skipped BS number, count= copy block number2. Using/dev/null and/dev/zero 1. Treat/dev/null as a "black hole", which is equivalent to a write-only file, and all content written to it will be lost forever2./dev/zero is a pseudo-file, but it actually produces a continuous stream of NULL3. Test
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
Test the script execution speed of PHP program accelerated exploration and read the script execution speed test of PHP program accelerated exploration. as mentioned above, we can only optimize the code that affects the speed. The Benchmark_Timer class and Benchmark_Iterate c
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
Linux Command Line test network speed
In many cases, we need to test the uplink and downlink bandwidths of Linux servers. Speedtest.net may be one of the most widely used websites ".Speedtest.net provides a command line version-speedtest-cli. The following shows how to use speedtest-cli in Linux Command Line to test th
The most common problem for network administrators is the network connection problem. Maybe the computer of the company's employees cannot access the Internet, so we can detect the problem through a few simple steps, however, there is a network connection problem that makes us feel at a loss. That is, employees reflect the slow speed of the network.
Because there are many factors that determine the network speed
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
Master Lu What is the CPU speed test
Through the computer performance evaluation algorithm presented by Master Lu, the processor (CPU) of the user's computer and the performance of the processor (CPU) with memory and motherboard are evaluated.
What's the use of master Lu 2015CPU speed test?
is to learn m
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.