HTTP Benchmarking Tool written in Node.JS.
npm install -g tommygun
git clone git://github.com/brettlangdon/tommygun.git
cd ./tommygun
npm install -g
Tommygun uses ini files to specify what urls and settings to test. Each section corresponds to the url to test and each property corresponds to specific settings for that given url.
[localhost]
port = 8000
num = 5
[localhost/submit]
port = 8000
data = this is a test
method = post
num = 2
[www.google.com]
[www.github.com]
tommygun --help
Usage: tommygun [config] [config]...
Options:
-c, --concurrency Number of Concurrent Clients to Use [default: 1]
-n, --requests Total Number Of Requests To Make
-r, --random Whether Or Not To Randomize The Url Order [boolean] [default: false]
-k, --keepalive Whether Or Not To Enable Keep Alive Support [boolean] [default: false]
-l, --log Log File To Write All Request Data To [string]
-s, --stats Whether or Not Print Result Stats [boolean] [default: true]
-q, --quiet Whether Or Not To Silence stdout [boolean] [default: false]
-h, --help Show This Help Text [boolean]
tommygun config.ini
The name for tommygun came from a play off of the name for http://www.github.com/newsapps/beeswithmachineguns
(The MIT License)
Copyright (c) 2012 Brett Langdon <brett@blangdon.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.