On Mon, Jan 5, 2009 at 12:14 AM, Chris Anderson <[email protected]> wrote: > On Sun, Jan 4, 2009 at 2:45 PM, Geir Magnusson Jr. <[email protected]> wrote: >> >> How many inserts a second can you do on your machine? > > > This the command I'm using to insert into the db: > > ab -c 10 -n 1000 -p emptypost -T 'application/json' > http://127.0.0.1:5984/test_suite_db >
Just to add some stats, here are results on an openbsd machine : pollen% uname -a OpenBSD pollen.nymphormation.net 4.4 GENERIC.MP#2047 amd64 pollen% ab -c 10 -n 1000 -p emptypost -T 'application/json' http://127.0.0.1:5984/test2 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.0a731188-incubating Server Hostname: 127.0.0.1 Server Port: 5984 Document Path: /test2 Document Length: 68 bytes Concurrency Level: 10 Time taken for tests: 6.058 seconds Complete requests: 1000 Failed requests: 979 (Connect: 0, Receive: 0, Length: 979, Exceptions: 0) Write errors: 0 Total transferred: 281749 bytes Total POSTed: 142000 HTML transferred: 69749 bytes Requests per second: 165.08 [#/sec] (mean) Time per request: 60.576 [ms] (mean) Time per request: 6.058 [ms] (mean, across all concurrent requests) Transfer rate: 45.42 [Kbytes/sec] received 22.89 kb/s sent 68.31 kb/s total Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 1 Processing: 12 60 9.3 61 111 Waiting: 10 60 9.2 60 110 Total: 13 60 9.3 61 111 Percentage of the requests served within a certain time (ms) 50% 61 66% 62 75% 63 80% 63 90% 69 95% 75 98% 87 99% 93 100% 111 (longest request) - benoit
