https://github.com/svenkatreddy/casperjs-loadtest
loadtest casperjs script using node
https://github.com/svenkatreddy/casperjs-loadtest
casperjs loadtest nodejs
Last synced: 3 days ago
JSON representation
loadtest casperjs script using node
- Host: GitHub
- URL: https://github.com/svenkatreddy/casperjs-loadtest
- Owner: svenkatreddy
- License: apache-2.0
- Created: 2017-06-20T22:36:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-05T13:14:43.000Z (almost 5 years ago)
- Last Synced: 2025-12-25T22:31:31.348Z (4 months ago)
- Topics: casperjs, loadtest, nodejs
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
$ npm install -g casperjs-loadtest
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:
$ 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.
$ 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.