| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Wrecker.Options
- data RunType
- data DisplayMode
- data URLDisplay
- data Options = Options {}
- defaultOptions :: Options
- data PartialOptions = PartialOptions {
- mConcurrency :: Maybe Int
- mBinCount :: Maybe Int
- mRunStyle :: Maybe RunType
- mTimeoutTime :: Maybe Int
- mDisplayMode :: Maybe DisplayMode
- mLogLevel :: Maybe LogLevel
- mMatch :: Maybe String
- mRequestNameColumnSize :: Maybe Int
- mOutputFilePath :: Maybe FilePath
- mSilent :: Maybe Bool
- murlDisplay :: Maybe URLDisplay
- completeOptions :: PartialOptions -> Maybe Options
- optionalOption :: Read a => Mod OptionFields a -> Parser (Maybe a)
- optionalStrOption :: Mod OptionFields String -> Parser (Maybe String)
- optionalSwitch :: Mod FlagFields Bool -> Parser (Maybe Bool)
- pPartialOptions :: Parser PartialOptions
- runParser :: IO Options
Documentation
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.
Constructors
| Interactive | |
| NonInteractive |
Instances
data URLDisplay Source #
Instances
Constructors
| Options | |
Fields
| |
defaultOptions :: Options Source #
defaultOptions provides sensible default for the Options
types
data PartialOptions Source #
Constructors
| PartialOptions | |
Fields
| |
Instances
optionalOption :: Read a => Mod OptionFields a -> Parser (Maybe a) Source #
pPartialOptions :: Parser PartialOptions Source #
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]
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