Skip to content

Instantly share code, notes, and snippets.

@flashingpumpkin
Created June 19, 2011 20:17
Show Gist options
  • Save flashingpumpkin/1034693 to your computer and use it in GitHub Desktop.
Save flashingpumpkin/1034693 to your computer and use it in GitHub Desktop.
# Tests performed on a Linode 512 instance.
# Keep in mind that Nginx is writing logs and Spooky is not.
# Kudos definitely go to http://twitter.com/ostinelli for Misultin!
########################################################################
###################### Nginx ###########################################
########################################################################
## Testing Nginx with http://owns.ch/pong
httperf --hog --client=0/1 --server=localhost --port=80 --uri=/pong --rate=1000 --send-buffer=4096 --recv-buffer=16384 --num-conns=1000 --num-calls=1000 --burst-length=20
Maximum connect burst length: 12
Total: connections 1000 requests 92006 replies 90900 test-duration 10.183 s
Connection rate: 98.2 conn/s (10.2 ms/conn, <=828 concurrent connections)
Connection time [ms]: min 67.8 avg 3588.8 max 9183.6 median 3809.5 stddev 2620.2
Connection time [ms]: connect 2594.4
Connection length [replies/conn]: 100.000
Request rate: 9035.6 req/s (0.1 ms/req)
Request size [B]: 66.0
Reply rate [replies/s]: min 5899.3 avg 8828.1 max 11756.9 stddev 4142.0 (2 samples)
Reply time [ms]: response 206.1 transfer 0.0
Reply size [B]: header 214.0 content 5.0 footer 0.0 (total 219.0)
Reply status: 1xx=0 2xx=90900 3xx=0 4xx=0 5xx=0
CPU time [s]: user 0.91 system 9.26 (user 8.9% system 91.0% total 99.9%)
Net I/O: 2499.8 KB/s (20.5*10^6 bps)
Errors: total 1000 client-timo 0 socket-timo 0 connrefused 0 connreset 1000
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
########################################################################
###################### Spooky ##########################################
########################################################################
## Testing spooky with `spooky:start_link(spooky_hello_world).`
httperf --hog --client=0/1 --server=localhost --port=8000 --uri=/pong --rate=1000 --send-buffer=4096 --recv-buffer=16384 --num-conns=1000 --num-calls=1000 --burst-length=20
Maximum connect burst length: 183
Total: connections 1000 requests 1000000 replies 1000000 test-duration 26.828 s
Connection rate: 37.3 conn/s (26.8 ms/conn, <=1000 concurrent connections)
Connection time [ms]: min 21467.2 avg 25187.1 max 26547.4 median 25456.5 stddev 804.8
Connection time [ms]: connect 159.3
Connection length [replies/conn]: 1000.000
Request rate: 37274.4 req/s (0.0 ms/req)
Request size [B]: 66.0
Reply rate [replies/s]: min 34324.5 avg 37152.9 max 39061.2 stddev 1866.5 (5 samples)
Reply time [ms]: response 263.4 transfer 0.0
Reply size [B]: header 126.0 content 18.0 footer 0.0 (total 144.0)
Reply status: 1xx=0 2xx=1000000 3xx=0 4xx=0 5xx=0
CPU time [s]: user 3.42 system 10.95 (user 12.8% system 40.8% total 53.6%)
Net I/O: 7644.2 KB/s (62.6*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