Skip to content

matx64/benchpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

benchpress

A lightweight HTTP benchmarking tool.

Usage

Usage: benchpress [OPTIONS] --url <URL>

Options:
  -u, --url <URL>                  Target URL to benchmark
  -r, --requests <REQUESTS>        Total number of requests [default: 1]
  -c, --concurrency <CONCURRENCY>  Number of concurrent requests [default: 50]
  -t, --timeout <TIMEOUT>          Request timeout in seconds [default: 30]
  -m, --method <METHOD>            HTTP method [default: GET] [possible values: get, post, put, delete, head, options, patch]
  -b, --body <BODY>                Request body as string [default: empty]
  -H, --header <KEY=VALUE>         Custom HTTP header [allows multiple]
  -h, --help                       Print help
  -V, --version                    Print version

Examples

  cargo run --release -- -u http://localhost:3000 -r 1000
  cargo run --release -- -u http://localhost:3000 -r 10000 -c 1000 -t 10
  cargo run --release -- -u http://localhost:3000 -r 10000 -c 1000 -m post --body '{"data": "foo"}'
  cargo run --release -- -u http://localhost:3000 -r 10000 -c 1000 -m post --header "Content-Type=application/json" --header "Authorization=Bearer token123"

benchpress.png

About

A lightweight HTTP benchmarking tool

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages