Skip to content

Instantly share code, notes, and snippets.

@simodima
Created June 1, 2012 12:10
Show Gist options
  • Save simodima/2851668 to your computer and use it in GitHub Desktop.
Save simodima/2851668 to your computer and use it in GitHub Desktop.
AB (Apache Benchmark) on Node.js server
$ ab -n 10000 -c 1000 http://localhost:5000/
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 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: localhost
Server Port: 5000
Document Path: /
Document Length: 1441 bytes
Concurrency Level: 1000
Time taken for tests: 50.129 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 15640000 bytes
HTML transferred: 14410000 bytes
Requests per second: 199.49 [#/sec] (mean)
Time per request: 5012.903 [ms] (mean)
Time per request: 5.013 [ms] (mean, across all concurrent requests)
Transfer rate: 304.68 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1423 4008.4 0 21056
Processing: 5 779 543.9 701 9331
Waiting: 5 772 536.2 694 9331
Total: 8 2202 4046.3 762 23779
Percentage of the requests served within a certain time (ms)
50% 762
66% 989
75% 1178
80% 2890
90% 4163
95% 9981
98% 21810
99% 22032
100% 23779 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment