Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Created March 6, 2012 07:58
Show Gist options
  • Save tarcieri/1984814 to your computer and use it in GitHub Desktop.
Save tarcieri/1984814 to your computer and use it in GitHub Desktop.
Reel on jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-03-03 15a947e) (OpenJDK 64-Bit Server VM 1.8.0-b14) [darwin-amd64-java]
$ ab -k -c 50 -n 10000 http://127.0.0.1:1234/
This is ApacheBench, Version 2.3 <$Revision: 1178079 $>
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 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 1234
Document Path: /
Document Length: 13 bytes
Concurrency Level: 50
Time taken for tests: 1.949 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 10000
Total transferred: 760000 bytes
HTML transferred: 130000 bytes
Requests per second: 5129.92 [#/sec] (mean)
Time per request: 9.747 [ms] (mean)
Time per request: 0.195 [ms] (mean, across all concurrent requests)
Transfer rate: 380.74 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 1 10 8.4 9 267
Waiting: 1 10 8.4 9 267
Total: 1 10 8.5 9 268
Percentage of the requests served within a certain time (ms)
50% 9
66% 10
75% 10
80% 10
90% 10
95% 11
98% 13
99% 14
100% 268 (longest request)
$ httperf --num-conns=50 --num-calls=1000 --server=localhost --port=1234
httperf --client=0/1 --server=localhost --port=1234 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=50 --num-calls=1000
httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
Maximum connect burst length: 1
Total: connections 50 requests 50000 replies 50000 test-duration 9.127 s
Connection rate: 5.5 conn/s (182.5 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 173.0 avg 182.5 max 231.8 median 177.5 stddev 13.0
Connection time [ms]: connect 0.1
Connection length [replies/conn]: 1000.000
Request rate: 5478.2 req/s (0.2 ms/req)
Request size [B]: 62.0
Reply rate [replies/s]: min 5376.6 avg 5376.6 max 5376.6 stddev 0.0 (1 samples)
Reply time [ms]: response 0.2 transfer 0.0
Reply size [B]: header 63.0 content 13.0 footer 0.0 (total 76.0)
Reply status: 1xx=0 2xx=50000 3xx=0 4xx=0 5xx=0
CPU time [s]: user 1.28 system 7.85 (user 14.0% system 86.0% total 100.0%)
Net I/O: 738.3 KB/s (6.0*10^6 bps)
Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment