Skip to content

Instantly share code, notes, and snippets.

@chirag04
Created October 19, 2012 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chirag04/3919767 to your computer and use it in GitHub Desktop.
Save chirag04/3919767 to your computer and use it in GitHub Desktop.
Benchmarking node.js app v0.0.1
chirag@chirag-VPCEH24FX:/etc/haproxy$ ab -r -n 100000 -c 1000 localhost:3005/stock/tcs
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 localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests
Server Software:
Server Hostname: localhost
Server Port: 3005
Document Path: /stock/tcs
Document Length: 4783 bytes
Concurrency Level: 1000
Time taken for tests: 191.377 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: 508412142 bytes
HTML transferred: 478300000 bytes
Requests per second: 522.53 [#/sec] (mean)
Time per request: 1913.768 [ms] (mean)
Time per request: 1.914 [ms] (mean, across all concurrent requests)
Transfer rate: 2594.34 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 2.2 0 34
Processing: 161 1904 275.9 1907 9989
Waiting: 160 1902 275.8 1906 9988
Total: 195 1905 276.2 1908 10005
Percentage of the requests served within a certain time (ms)
50% 1908
66% 1962
75% 1988
80% 2002
90% 2034
95% 2060
98% 2094
99% 2142
100% 10005 (longest request)
@chirag04
Copy link
Author

Thanks to haproxy Win-Win!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment