Linux is faster than windows executables

  
 

When you select the server OS
, the professional will recommend you to use linux. One of the recommended reasons is that the performance is 35% stronger than Windows? After my step-by-step real machine verification, I still recognize that Linux is faster.

I recently had the opportunity to test a cloud server because it is a cloud server, so users can change the operating system at will. So I installed the website program on windows and centos separately to test the running speed. The following are the environmental descriptions and test methods for the test.

Server hardware configuration: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz Single core 1G memory

1. Software environment: 1,windows

windows 2003 IIS +mysql+php

2, centos 5.9apache+mysql+php

Second, the test program uses php with query mysql database operation, record the start time before the program runs $st = microtime (1);

At the end of the program, the output runtime echo "load time:".(microtime(1)-$st);

Three, test results test the same program The following is a comparison of three tests: first time: windows 2003: load time: 0.019716024398804centos 5.9: load time: 0.0113401412964

second time: windows 2003: load time: 0.011873960494995centos 5.9: Entry time: 0.00520300865173

The third time: windows 2003: Loading time: 0.01479697227478centos 5.9: Loading time: 0.0047299861908

Test results: Linux is faster than Windows executive program

Although these speeds are different, the viewer may not feel the difference when opening the speed, but it can be explained that it is not considered. Factors to consider only as a web server, the same hardware, the case of the same program, centos operating system efficiency in the implementation of the program is still much stronger than the windows.

Copyright © Windows knowledge All Rights Reserved