Skip to content

Instantly share code, notes, and snippets.

@yuuki
Last active April 13, 2017 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuuki/92ce21ce9f23282e607950d1da5e704a to your computer and use it in GitHub Desktop.
Save yuuki/92ce21ce9f23282e607950d1da5e704a to your computer and use it in GitHub Desktop.
each fork vs prefork
[y_uuki@ ~]$ ab -n 5000 -c 20 http://localhost:10020/
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Completed 5000 requests
Finished 5000 requests
Server Software:
Server Hostname: localhost
Server Port: 10020
Document Path: /
Document Length: 0 bytes
Concurrency Level: 20
Time taken for tests: 10.085 seconds
Complete requests: 5000
Failed requests: 0
Total transferred: 80000 bytes
HTML transferred: 0 bytes
Requests per second: 495.76 [#/sec] (mean)
Time per request: 40.342 [ms] (mean)
Time per request: 2.017 [ms] (mean, across all concurrent requests)
Transfer rate: 7.75 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 1 40 6.2 38 101
Waiting: 1 40 6.2 38 100
Total: 2 40 6.2 38 101
Percentage of the requests served within a certain time (ms)
50% 38
66% 39
75% 41
80% 44
90% 46
95% 48
98% 50
99% 52
100% 101 (longest request)
[y_uuki@ ~]$ ab -n 5000 -c 20 http://localhost:10020/
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Completed 5000 requests
Finished 5000 requests
Server Software:
Server Hostname: localhost
Server Port: 10020
Document Path: /
Document Length: 0 bytes
Concurrency Level: 20
Time taken for tests: 0.438 seconds
Complete requests: 5000
Failed requests: 0
Total transferred: 80000 bytes
HTML transferred: 0 bytes
Requests per second: 11408.80 [#/sec] (mean)
Time per request: 1.753 [ms] (mean)
Time per request: 0.088 [ms] (mean, across all concurrent requests)
Transfer rate: 178.26 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.1 1 2
Processing: 0 1 0.3 1 9
Waiting: 0 1 0.3 1 9
Total: 1 2 0.4 2 10
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 2
80% 2
90% 2
95% 2
98% 2
99% 3
100% 10 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment