hw.model: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
2×2顆
記憶體4G
#uname -a
FreeBSD localhost.localdomain 8.2-RELEASE
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.100.28 (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests
Server Software: nginx/1.0.0
Server Hostname: 192.168.100.28
Server Port: 80
Document Path: /info.php
Document Length: 49457 bytes
Concurrency Level: 1000
Time taken for tests: 86.578 seconds
Complete requests: 100000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 4977355920 bytes
HTML transferred: 4961202790 bytes
Requests per second: 1155.03 [#/sec] (mean)
Time per request: 865.78 [ms] (mean)
Time per request: 0.87 [ms] (mean, across all concurrent requests)
Transfer rate: 57489.84 [Kbytes/sec] received
Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 297 888.8 11 6414
Processing: 20 555 649.9 421 9989
Waiting: 18 555 649.9 421 9988
Total: 20 852 1065.3 473 10222
Percentage of the requests served within a certain time (ms)
50% 473
66% 584
75% 699
80% 776
90% 3308
95% 3473
98% 3688
99% 3817
100% 10222 (last request)
磁碟壓力只在測試開始時大,並且因為所有東西都放在一臺伺服器,瞬間最高把CPU空閒率幹到了0.3%,但實際上佔用CPU最多的是ab,佔了40%多,nginx佔用不到40%
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.100.28 (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Finished 100000 requests
Server Software: lighttpd/1.4.28
Server Hostname: 192.168.100.28
Server Port: 80
Document Path: /info.php
Document Length: 49127 bytes
Concurrency Level: 1000
Time taken for tests: 83.107 seconds
Complete requests: 100000
Failed requests: 0
Broken pipe errors: 0
Total transferred: 4932575365 bytes
HTML transferred: 4915304142 bytes
Requests per second: 1203.27 [#/sec] (mean)
Time per request: 831.07 [ms] (mean)
Time per request: 0.83 [ms] (mean, across all concurrent requests)
Transfer rate: 59352.10 [Kbytes/sec] received
Connnection Times (ms)
min mean[+/-sd] median max
Connect: 0 19 206.2 1 3113
Processing: 79 807 155.8 823 3891
Waiting: 66 807 155.8 823 3890
Total: 79 826 251.0 826 4248
Percentage of the requests served within a certain time (ms)
50% 826
66% 843
75% 854
80% 862
90% 894
95% 939
98% 1006
99% 1094
100% 4248 (last request)