Skip to content

Instantly share code, notes, and snippets.

@jerrypnz
Created July 15, 2013 15:42
Show Gist options
  • Save jerrypnz/6000966 to your computer and use it in GitHub Desktop.
Save jerrypnz/6000966 to your computer and use it in GitHub Desktop.
breeze test_http_server ab测试结果,单线程,服务器返回一段127 bytes的HTML。好慢啊,摔!
[~]$ /usr/sbin/ab -n 1000 -c 100 http://127.0.0.1:8000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Server Software: breeze/0.1.0
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /
Document Length: 127 bytes
Concurrency Level: 100
Time taken for tests: 0.060 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 236262 bytes
HTML transferred: 128778 bytes
Requests per second: 16668.61 [#/sec] (mean)
Time per request: 5.999 [ms] (mean)
Time per request: 0.060 [ms] (mean, across all concurrent requests)
Transfer rate: 3845.86 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.5 1 3
Processing: 0 2 0.7 2 5
Waiting: 0 1 0.4 1 3
Total: 1 3 0.8 3 6
Percentage of the requests served within a certain time (ms)
50% 3
66% 3
75% 3
80% 3
90% 4
95% 5
98% 5
99% 5
100% 6 (longest request)
[~]$ /usr/sbin/ab -n 1000 -c 1000 http://127.0.0.1:8000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Server Software: breeze/0.1.0
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /
Document Length: 127 bytes
Concurrency Level: 1000
Time taken for tests: 0.087 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 233000 bytes
HTML transferred: 127000 bytes
Requests per second: 11520.34 [#/sec] (mean)
Time per request: 86.803 [ms] (mean)
Time per request: 0.087 [ms] (mean, across all concurrent requests)
Transfer rate: 2621.33 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 18 28 5.3 28 35
Processing: 19 24 4.9 21 34
Waiting: 13 21 5.8 20 33
Total: 48 51 1.6 51 54
Percentage of the requests served within a certain time (ms)
50% 51
66% 52
75% 52
80% 53
90% 54
95% 54
98% 54
99% 54
100% 54 (longest request)
[~]$ /usr/sbin/ab -n 10000 -c 1000 http://127.0.0.1:8000/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Server Software: breeze/0.1.0
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /
Document Length: 127 bytes
Concurrency Level: 1000
Time taken for tests: 0.643 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 2335359 bytes
HTML transferred: 1272921 bytes
Requests per second: 15549.29 [#/sec] (mean)
Time per request: 64.312 [ms] (mean)
Time per request: 0.064 [ms] (mean, across all concurrent requests)
Transfer rate: 3546.21 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 2 6 7.5 3 35
Processing: 1 7 7.4 4 225
Waiting: 1 5 6.4 3 225
Total: 3 13 14.2 8 237
Percentage of the requests served within a certain time (ms)
50% 8
66% 10
75% 11
80% 13
90% 21
95% 53
98% 54
99% 55
100% 237 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment