Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/corydolphin/heroku-benchserver
A stubb Heroku application bundling Apache's apachebench tool, for performance testing
https://github.com/corydolphin/heroku-benchserver
Last synced: 19 days ago
JSON representation
A stubb Heroku application bundling Apache's apachebench tool, for performance testing
- Host: GitHub
- URL: https://github.com/corydolphin/heroku-benchserver
- Owner: corydolphin
- Created: 2013-05-12T21:19:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-03T02:15:56.000Z (over 11 years ago)
- Last Synced: 2023-03-23T11:43:50.539Z (almost 2 years ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Heroku Benchpack
=================================This is a repository which makes it easy to performance test an application deployed on Heroku.
[Apache Bench](http://httpd.apache.org/docs/2.2/programs/ab.html), `ab` is the defacto tool for testing the performance of a web application, but many people do not have access to a high enough bandwidth connection to actually test the performance of applications deployed on clouds such as Heroku. This repository makes it easy to perform performance testing on Heroku applications.This repository makes use of vendored binaries on heroku, using the result of [Vulcan-Apache](https://github.com/wcdolphin/vulcan-apache), [Heroku-buildpack-vendorbinaries](https://github.com/wcdolphin/heroku-buildpack-vendorbinaries). Please consult me if any issues arise, and please contribute if you see any room for improvement!
To use, clone this repository and simply deploy to heroku and set the environment variables.
$ git clone [email protected]:wcdolphin/heroku-benchpack.git
$ herok apps:create
$ git push heroku masterTo actually bench a website, use the standard ab commandline options, prefixed by `heroku run`:
$ heroku run "ab -n 10000 -c 1000 http://www.google.com/"
Result:
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.google.com (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 requestsServer Software: gws
Server Hostname: www.google.com
Server Port: 80Document Path: /
Document Length: 12728 bytes
Concurrency Level: 1000
Time taken for tests: 7.776 seconds
Complete requests: 10000
Failed requests: 9209
(Connect: 0, Receive: 0, Length: 9209, Exceptions: 0)
Write errors: 0
Total transferred: 135381100 bytes
HTML transferred: 128021100 bytes
Requests per second: 1286.07 [#/sec] (mean)
Time per request: 777.562 [ms] (mean)
Time per request: 0.778 [ms] (mean, across all concurrent requests)
Transfer rate: 17002.89 [Kbytes/sec] receivedConnection Times (ms)
min mean[+/-sd] median max
Connect: 21 163 195.5 62 1561
Processing: 51 377 368.9 194 4538
Waiting: 30 168 191.3 78 4496
Total: 104 541 464.1 316 4582Percentage of the requests served within a certain time (ms)
50% 316
66% 543
75% 788
80% 969
90% 1271
95% 1498
98% 1684
99% 1897
100% 4582 (longest request)
1