wrecker-1.2.0.0: An HTTP Performance Benchmarker

Safe HaskellNone
LanguageHaskell2010

Wrecker.Options

Synopsis

Documentation

data RunType Source #

There are two typical ways to invoke wrecker. RunCount will execute each a script n times on each thread. So a run count of 100 and a concurrency of 10 will run the script a total of 1000 times. Alternatively, wrecker can run for specified number of seconds with RunTimed.

Constructors

RunCount Int 
RunTimed Int 

data DisplayMode Source #

DisplayMode controls how results are displayed in the console. The default is NonInterative which returns the final results at the end of the program. Interactive will show partial results as the program updates.

data Options Source #

Constructors

Options 

Fields

defaultOptions :: Options Source #

defaultOptions provides sensible default for the Options types

runParser :: IO Options Source #

Run the command line parse and return the Options

runParser can parse the following options

$ wrecker-based-app --help

wrecker - HTTP stress tester and benchmarker

Usage: example [--concurrency ARG] [--bin-count ARG] ([--run-count ARG] |
               [--run-timed ARG]) [--timeout-time ARG] [--display-mode ARG]
               [--log-level ARG] [--match ARG] [--request-name-size ARG]
               [--output-path ARG] [--silent] [--record-query]
 Welcome to wrecker

Available options:
 -h,--help                Show this help text
 --concurrency ARG        Number of threads for concurrent requests
 --bin-count ARG          Number of bins for latency histogram
 --run-count ARG          number of times to repeat
 --run-timed ARG          number of seconds to repeat
 --timeout-time ARG       How long to wait for all requests to finish
 --display-mode ARG       Display results interactively
 --log-level ARG          Display results interactively
 --match ARG              Only run tests that match the glob
 --request-name-size ARG  Request name size for the terminal display
 --output-path ARG        Save a JSON file of the the statistics to given path
 --silent                 Disable all output
 --record-query           Take in consideration the query string for the report
 --list-test-groups       Shows the list of tests to run and exit