public
Created

net-http-server benchmarks (single threaded)

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
$ ab -n 1000 http://localhost:8080/
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/
 
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests
 
 
Server Software:
Server Hostname: localhost
Server Port: 8080
 
Document Path: /
Document Length: 11 bytes
 
Concurrency Level: 1
Time taken for tests: 21.745 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 55000 bytes
HTML transferred: 11000 bytes
Requests per second: 45.99 [#/sec] (mean)
Time per request: 21.745 [ms] (mean)
Time per request: 21.745 [ms] (mean, across all concurrent requests)
Transfer rate: 2.47 [Kbytes/sec] received
 
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 13 22 11.8 15 72
Waiting: 13 21 11.8 14 72
Total: 13 22 11.8 15 72
 
Percentage of the requests served within a certain time (ms)
50% 15
66% 19
75% 20
80% 41
90% 42
95% 43
98% 46
99% 49
100% 72 (longest request)
 
[hal@shadow net-http-server]$ ab -n 4000 http://localhost:8080/
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/
 
Benchmarking localhost (be patient)
Completed 400 requests
Completed 800 requests
Completed 1200 requests
Completed 1600 requests
Completed 2000 requests
Completed 2400 requests
Completed 2800 requests
Completed 3200 requests
Completed 3600 requests
Completed 4000 requests
Finished 4000 requests
 
 
Server Software:
Server Hostname: localhost
Server Port: 8080
 
Document Path: /
Document Length: 11 bytes
 
Concurrency Level: 1
Time taken for tests: 89.451 seconds
Complete requests: 4000
Failed requests: 0
Write errors: 0
Total transferred: 220000 bytes
HTML transferred: 44000 bytes
Requests per second: 44.72 [#/sec] (mean)
Time per request: 22.363 [ms] (mean)
Time per request: 22.363 [ms] (mean, across all concurrent requests)
Transfer rate: 2.40 [Kbytes/sec] received
 
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 13 22 13.1 15 168
Waiting: 12 22 13.0 15 168
Total: 13 22 13.1 15 168
 
Percentage of the requests served within a certain time (ms)
50% 15
66% 19
75% 22
80% 41
90% 42
95% 44
98% 48
99% 57
100% 168 (longest request)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.