Hi,
I tested using CouchDB v0.8 and v0.9, using same machine, same erlang
host (v5.6.4), and v0.9 is significantly slower. I therefor doubt it has
to do with this fsync change in erlang v5.6.4
In summary:
CouchDB/0.8.0-incubating : 201 req/sec
CouchDB/0.9.0a731428-incubating : 7.5 req/sec
Below are the full outputs of the two runs I did:
*
Results for **CouchDB/0.8.0-incubating, 201 req/sec :
*
~ > ab -c 10 -n 1000 -p emptypost -T 'application/json'
http://127.0.0.1:5984/test_suite_db
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 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/0.8.0-incubating
Server Hostname: 127.0.0.1
Server Port: 5984
Document Path: /test_suite_db
Document Length: 70 bytes
Concurrency Level: 10
Time taken for tests: 4.967 seconds
Complete requests: 1000
Failed requests: 224
(Connect: 0, Receive: 0, Length: 224, Exceptions: 0)
Write errors: 0
Total transferred: 274743 bytes
Total POSTed: 208000
HTML transferred: 69743 bytes
Requests per second: 201.35 [#/sec] (mean)
Time per request: 49.666 [ms] (mean)
Time per request: 4.967 [ms] (mean, across all concurrent requests)
Transfer rate: 54.02 [Kbytes/sec] received
40.90 kb/s sent
94.92 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 4
Processing: 38 49 7.7 47 98
Waiting: 38 49 7.7 47 98
Total: 38 49 7.7 47 99
Percentage of the requests served within a certain time (ms)
50% 47
66% 50
75% 52
80% 53
90% 58
95% 67
98% 74
99% 80
100% 99 (longest request)
*
Results for CouchDB/0.9.0a731428-incubating, 7.5 req/sec :*
~ > ab -c 10 -n 1000 -p emptypost -T 'application/json'
http://127.0.0.1:5984/test_suite_db
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 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/0.9.0a731428-incubating
Server Hostname: 127.0.0.1
Server Port: 5984
Document Path: /test_suite_db
Document Length: 70 bytes
Concurrency Level: 10
Time taken for tests: 132.048 seconds
Complete requests: 1000
Failed requests: 247
(Connect: 0, Receive: 0, Length: 247, Exceptions: 0)
Write errors: 0
Total transferred: 281729 bytes
Total POSTed: 208000
HTML transferred: 69729 bytes
Requests per second: 7.57 [#/sec] (mean)
Time per request: 1320.480 [ms] (mean)
Time per request: 132.048 [ms] (mean, across all concurrent requests)
Transfer rate: 2.08 [Kbytes/sec] received
1.54 kb/s sent
3.62 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 4
Processing: 422 1314 72.9 1317 1533
Waiting: 422 1314 72.9 1317 1533
Total: 423 1314 72.9 1317 1533
Percentage of the requests served within a certain time (ms)
50% 1317
66% 1341
75% 1350
80% 1359
90% 1392
95% 1415
98% 1433
99% 1457
100% 1533 (longest request)
Cheers,
Lawrence