All apps/autocannon

autocannon

autocannon

Fast HTTP/1.1 benchmarking tool written in Node.js.

Runs as autocannon|macOS, Linux, Windows|github.com

Autocomplete

Fig spec, with what the manifest adds · 40 options
Published once and never changed; check the digest before caching
sha256
e24a6ff062fe8d0349e052b68dab5d67818bb82933b17a20c4a7f2e099b6e396
Size
9513 bytes
OptionsOn autocannon itself
-c--connections
The number of concurrent connections to use <NUM>
-p--pipelining
The number of pipelined requests to use <NUM>
-d--duration
The number of seconds to run the autocannon <SEC>
-a--amount
The number of requests to make before exiting the benchmark <NUM>
-L
The number of milliseconds to elapse between taking samples. This controls the sample interval, & therefore the total number of samples, which affects statistical analyses <NUM>
-S--socketPath
A path to a Unix Domain Socket or a Windows Named Pipe. A URL is still required to send the correct Host header and path <PATH>
-w--workers
Number of worker threads to use to fire requests <NUM>
-W--warmup
Use a warm up interval before starting sampling. This enables startup processes to finish and traffic to normalize before sampling begins <-c> <-d>
--on-port
Start the command listed after -- on the command line. When it starts listening on a port, start sending requests to that port. A URL is still required to send requests to the correct path. The hostname can be omitted, `localhost` will be used by default <PORT>
-m--method
The HTTP method to use <METHOD>
-t--timeout
The number of seconds before timing out and resetting a connection <NUM>
-T--title
The title to place in the results for identification <TITLE>
-b--body
The body of the request <BODY>
-F--form
<FORM>
-i--input
The body of the request <FILE>
-H--headers
The request headers <K=V>
--har
When provided, Autocannon will use requests from the HAR file <FILE>
-B--bailout
The number of failures before initiating a bailout <NUM>
-M--maxConnectionRequests
The max number of requests to make per connection to the server <NUM>
-O--maxOverallRequests
The max number of requests to make overall to the server <NUM>
-r--connectionRate
The max number of requests to make per second from an individual connection <NUM>
-R--overallRate
The max number of requests to make per second from all connections <NUM>
-C--ignoreCoordinatedOmission
Ignore the coordinated omission issue when requests should be sent at a fixed rate using 'connectionRate' or 'overallRate'
-D--reconnectRate
The number of requests to make before resetting a connections connection to the server <NUM>
-n--no-progress
Don't render the progress bar. default: false
-l--latency
Print all the latency data. default: false
-I--idReplacement
Enable replacement of [<id>] with a randomly generated ID within the request body. default: false
-j--jsonPath
Print the output as newline delimited JSON. This will cause the progress bar and results not to be rendered
-f--forever
Run the benchmark forever. Efficiently restarts the benchmark on completion
-s--servername
Server name for the SNI (Server Name Indication) TLS extension. Defaults to the hostname of the URL when it is not an IP address
-x--excludeErrorStats
Exclude error statistics (non-2xx HTTP responses) from the final latency and bytes per second averages. default: false
-E--expectBody
Ensure the body matches this value. If enabled, mismatches count towards bailout. Enabling this option will slow down the load testing <EXPECTED>
--renderStatusCodes
Print status codes and their respective statistics
--cert
Path to cert chain in pem format <FILE>
--key
Path to private key for specified cert in pem format <FILE>
--ca
Path to trusted ca certificates for the test. This argument accepts both a single file as well as a list of files <FILE>
--debug
Print connection errors to stderr
-v--version
Print the version number
-V--verbose
Print the table with results (default: true)
-h--help
Print help
ArgumentsPositional, in order
<URL>
The URL to benchmark