cryload

HTTP benchmarking tool benchmark cli http load-testing
2.0.0 released

cryload

HTTP benchmarking tool written in Crystal.

Installation

Requires Crystal 1.19.0 or later.

git clone https://github.com/sdogruyol/cryload.git && cd cryload
shards build --release

The binary will be at bin/cryload.

Usage

cryload <url> [options]

Options:

| Option | Description | |--------|-------------| | -n, --numbers | Number of requests to make | | -d, --duration | Duration of test in seconds | | -c, --connections | Concurrent connections (default: 10) | | -h, --help | Show help |

Examples:

# 10,000 requests to localhost
cryload http://localhost:9292 -n 10000

# 10 seconds with 100 connections
cryload http://localhost:3000 -d 10 -c 100

Example output:

Preparing to make it CRY for 10 seconds with 100 connections!
Running load test @ http://localhost:3000/

  Stats      Avg      Stdev    Max
  Latency    0.53ms   0.76ms   35.39ms

  1696170 requests in 10.11s
  Requests/sec:  167803.62
  2xx: 1696170    Non-2xx: 0

Contributing

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

License

MIT

cryload:
  github: sdogruyol/cryload
  version: ~> 2.0.0
License MIT
Crystal 1.19.0

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently