Skip to content

Instantly share code, notes, and snippets.

@thejh
Created March 12, 2015 14:55
Show Gist options
  • Save thejh/0cf5af6151518d0fc6d8 to your computer and use it in GitHub Desktop.
Save thejh/0cf5af6151518d0fc6d8 to your computer and use it in GitHub Desktop.
couchdb localhost latency issue (tested with 1.6.0)
$ ab -k -n 1000 -A XXX:XXX http://127.0.0.1:5984/jann_mail/8de31498bb790a5e6979f4b16f322481
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 127.0.0.1 (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: CouchDB/1.6.0
Server Hostname: 127.0.0.1
Server Port: 5984
Document Path: /jann_mail/8de31498bb790a5e6979f4b16f322481
Document Length: 41 bytes
Concurrency Level: 1
Time taken for tests: 40.609 seconds
Complete requests: 1000
Failed requests: 0
Non-2xx responses: 1000
Keep-Alive requests: 1000
Total transferred: 267000 bytes
HTML transferred: 41000 bytes
Requests per second: 24.63 [#/sec] (mean)
Time per request: 40.609 [ms] (mean)
Time per request: 40.609 [ms] (mean, across all concurrent requests)
Transfer rate: 6.42 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 1 41 1.3 41 42
Waiting: 1 1 0.2 1 3
Total: 1 41 1.3 41 42
Percentage of the requests served within a certain time (ms)
50% 41
66% 41
75% 41
80% 41
90% 41
95% 41
98% 41
99% 41
100% 42 (longest request)
$ ab -n 1000 -A XXX:XXX http://127.0.0.1:5984/jann_mail/8de31498bb790a5e6979f4b16f322481
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 127.0.0.1 (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: CouchDB/1.6.0
Server Hostname: 127.0.0.1
Server Port: 5984
Document Path: /jann_mail/8de31498bb790a5e6979f4b16f322481
Document Length: 41 bytes
Concurrency Level: 1
Time taken for tests: 0.698 seconds
Complete requests: 1000
Failed requests: 0
Non-2xx responses: 1000
Total transferred: 243000 bytes
HTML transferred: 41000 bytes
Requests per second: 1432.33 [#/sec] (mean)
Time per request: 0.698 [ms] (mean)
Time per request: 0.698 [ms] (mean, across all concurrent requests)
Transfer rate: 339.90 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 1 1 0.1 1 3
Waiting: 0 1 0.1 1 3
Total: 1 1 0.1 1 3
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 1
100% 3 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment