Skip to content

Instantly share code, notes, and snippets.

@lokedhs
Created October 5, 2014 10:10
Show Gist options
  • Save lokedhs/2fdb3f6fd65eed676bf2 to your computer and use it in GitHub Desktop.
Save lokedhs/2fdb3f6fd65eed676bf2 to your computer and use it in GitHub Desktop.
Benchmark of clouchdb with and without HTTP keepalive
elias@tiger:~/prog/clouchdb$ ab -n 100 'http://127.0.0.1:5984/foo'
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient).....done
Server Software: CouchDB/1.6.0
Server Hostname: 127.0.0.1
Server Port: 5984
Document Path: /foo
Document Length: 236 bytes
Concurrency Level: 1
Time taken for tests: 0.044 seconds
Complete requests: 100
Failed requests: 0
Total transferred: 42500 bytes
HTML transferred: 23600 bytes
Requests per second: 2268.65 [#/sec] (mean)
Time per request: 0.441 [ms] (mean)
Time per request: 0.441 [ms] (mean, across all concurrent requests)
Transfer rate: 941.58 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 0 0 0.2 0 2
Waiting: 0 0 0.2 0 1
Total: 0 0 0.2 0 2
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 1
95% 1
98% 2
99% 2
100% 2 (longest request)
elias@tiger:~/prog/clouchdb$ ab -n 100 -k 'http://127.0.0.1:5984/foo'
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient).....done
Server Software: CouchDB/1.6.0
Server Hostname: 127.0.0.1
Server Port: 5984
Document Path: /foo
Document Length: 236 bytes
Concurrency Level: 1
Time taken for tests: 3.962 seconds
Complete requests: 100
Failed requests: 0
Keep-Alive requests: 100
Total transferred: 44900 bytes
HTML transferred: 23600 bytes
Requests per second: 25.24 [#/sec] (mean)
Time per request: 39.623 [ms] (mean)
Time per request: 39.623 [ms] (mean, across all concurrent requests)
Transfer rate: 11.07 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 2 40 3.8 40 40
Waiting: 0 1 0.4 2 2
Total: 2 40 3.8 40 40
ERROR: The median and mean for the waiting time are more than twice the standard
deviation apart. These results are NOT reliable.
Percentage of the requests served within a certain time (ms)
50% 40
66% 40
75% 40
80% 40
90% 40
95% 40
98% 40
99% 40
100% 40 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment