].dir =Newdir; the } the the if(!Nd[i].flag[x][y][nd[i].dir]) { theNd[i].flag[x][y][nd[i].dir] =true; - return true; in}Else return false; the } the About voidTest () { the BOOLFlag =true, flag1=false, flag2=false; the while(flag) { the if(nd[cat].x = = nd[mouse].x nd[cat].y = = nd[mouse].y) Break; + if(!Move (cat)) -Flag1 =true; the if(!Move (mouse))BayiFlag2 =true; the++CNT; the if(Flag1 flag2) flag =false; - } - if(flag
devices./Dev/null pseudo device, recycle bin. Writing this file will not generate IO
The/dev/zero pseudo device will generate an empty producer stream and will not generate IO for it.
Test method:
A. Test the disk I/O write speed.
Time dd if =/dev/zero of = test. dbf
The crash is something that makes the operator rather annoying. When the performance of the crash is "blue screen", unable to start the system, the screen "freeze" no response, the mouse, keyboard can not be entered, the software operation abnormal interruption. Although the cause of the crash is a lot, but same, the reason is never out of hardware and software two aspects.
One, by the hardware cause of the crash
"Bad Heat"
Monitors, power supplies, a
:2.7034Spents ms:5.2598Spents ms:2.2486A large value appears in the middle. The computer is not saturated at this time, the overall value changes little.Continue to observe, there are fluctuations.Change 20msSpents ms:2.3521Spents ms:3.0119Spents ms:2.5323Spents ms:3.2632Spents ms:2.5801Spents ms:2.4971Spents ms:2.7784Spents ms:3.0281Spents ms:2.351Spents ms:2.6322Spents ms:3.0763Spents ms:2.1234Spents ms:2.569Spents ms:2.4023Spents ms:2.6595Test three, change the program, change Intel Dual Core
Jperf can measure the maximum TCP bandwidth with multiple parameters and UDP characteristics. Jperf can report bandwidth, delay jitter, and packet loss.JPERF2.0 Operating EnvironmentOperating system: Java Runtime Environment: JREjxpiinstall.exeNetwork requirements: Jperf can run on any IP network, including local Ethernet, Internet access and Wi-Fi networks.Other: Use JPerf must have two components installed: JPerf server (for listening to incoming test
cache is read in 2 seconds, which is about MB/sec;3.11 MB disk read (physical read) in 70.11 seconds, the read speed is about MB/sec
(2) Use the dd commandThis is not a professional test tool. However, if the test results are not demanding, you can use it to evaluate the disk read/write speed.In addition, this is a free software, which is basically installed on
The first thing to understand is two special devices:
/dev/null: Recycle Bin, bottomless pit/dev/zero: Generating charactersØ Test Disk Write ability
Time DD If=/dev/zero of=/test.dbf bs=8k count=300000
Because/dev//zero is a pseudo device that produces only a stream of empty characters and does not produce IO for it, IO is concentrated in the of file, and the of file is used only for writing, so this co
(physical read) in 70.11 seconds, the read speed is about MB/sec
(2) Use the DD command
This is not a professional test tool. However, if the test results are not demanding, you can use it to evaluate the disk read/write speed.
In addition, this is a free software, which is basically installed on X nix systems. dd too
The fastest speed is that non-WCF named pipelines on the local machine have 113 MB/S
The fastest speed for local network machines to transfer files is to use TCP binding of WCF, with a speed of 70 ~ 120 MB/S
Test speed comparison:
Local Data Transfer
the replication of Oracle bare devices, DD tools are generally preferred.Get to know two special devices before use/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 speed# time DD If=/dev/zero of=/test.dbf bs=8k count=3
speed.In addition, because this is a free software, basically Xnix system is installed, for the replication of Oracle bare devices, DD tools are generally preferred.Get to know two special devices before use/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
/sec;Read 218MB disk (physical read) in 3.11 seconds, read speed approx. 70.11 mb/sec(2) using the DD commandThis is not a professional testing tool, but if the test results are not very demanding, you can usually use to make a simple evaluation of the disk read and write speed.In addition, because this is a free software, basically Xnix system is installed, for the replication of Oracle bare devices, DD to
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.
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.
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.
Write speed:TIME dd If =/dev/Zero of = test. dbf bs = 8 k count = 300000Among them,/dev/zero is a pseudo device, which only generates a null compaction stream and does not generate Io for it. Therefore, Io will be concentrated in the of file, and the of file is only used for writing, therefore, this command is equivalent to testing the disk write capability.The output result is similar (because the
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
1, first familiar with two special equipment:(1)/dev/null: Recycle Bin, bottomless pit.(2)/dev/zero: produces characters.2. Test disk write capabilityCopy the Code code as follows:Time DD If=/dev/zero of=/testw.dbf bs=4k count=100000Because/dev//zero is a pseudo-device, it produces only a stream of empty characters, it does not produce Io, so the IO is concentrated in the of file, the of file is used only f
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.