项目作者: svenkatreddy

项目描述 :
loadtest casperjs script using node
高级语言: JavaScript
项目地址: git://github.com/svenkatreddy/casperjs-loadtest.git
创建时间: 2017-06-20T22:36:48Z
项目社区:https://github.com/svenkatreddy/casperjs-loadtest

开源协议:Apache License 2.0

下载


casperjs-loadtest

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

Installation

Install via npm:

  1. $ npm install -g casperjs-loadtest

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

  1. $ brew install casperjs --devel

Usage

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

  1. $ DEBUG=* casperjs-loadtest --file=sample.js

This will run the specified CasperJS script once in PhantomJS instance.

Parameters

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

  1. $ DEBUG=* casperjs-loadtest -s 100 -c 25 --file=sample.js

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

Thanks

Thanks to https://github.com/nmeans/phantomherd for concept.