0.01
No commit activity in last 3 years
No release in over 3 years
Simple load testing with EventMachine and PhantomJS/CasperJS
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Phantomherd

Phantomherd provides a simple way to launch multiple PhantomJS instances in parallel to run a simple load test on your site.

Installation

Install via RubyGems:

$ gem install phantomherd

You'll also need CasperJS, which you can install via Homebrew:

$ brew install casperjs --devel

Usage

To run a basic load test, just supply the name of a CasperJS script to run:

$ phantomherd test.coffee

This will run the specified CasperJS script once in two parallel PhantomJS instances by default and report the results.

Parameters

You can specify sample size with the -s flag, and level of concurrency with the -c flag.

$ phantomherd -s 100 -c 25 test.coffee

This will run a total of 100 runs through the specified CasperJS script across 25 concurrent PhantomJS instances.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request