Skip to content

Instantly share code, notes, and snippets.

@chirag04
Created October 14, 2012 13:53
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/3888654 to your computer and use it in GitHub Desktop.
Save chirag04/3888654 to your computer and use it in GitHub Desktop.
Benchmarking node.js app
chirag@chirag-VPCEH24FX:~$ ab -r -n 100000 -c 1000 localhost:3000/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: 3000
Document Path: /stock/tcs
Document Length: 4783 bytes
Concurrency Level: 1000
Time taken for tests: 291.551 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: 508413448 bytes
HTML transferred: 478300000 bytes
Requests per second: 342.99 [#/sec] (mean)
Time per request: 2915.510 [ms] (mean)
Time per request: 2.916 [ms] (mean, across all concurrent requests)
Transfer rate: 1702.95 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 5 114.0 0 3008
Processing: 372 2898 152.5 2900 3910
Waiting: 371 2897 152.5 2899 3909
Total: 392 2903 190.8 2900 6917
Percentage of the requests served within a certain time (ms)
50% 2900
66% 2926
75% 2942
80% 2955
90% 2988
95% 3014
98% 3077
99% 3220
100% 6917 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment