wrecker-0.1.1.1: A HTTP Performance Benchmarker

Safe HaskellNone
LanguageHaskell2010

Wrecker.Runner

Synopsis

Documentation

newStandaloneRecorder :: IO (NextRef AllStats, Thread, Recorder) Source #

Typically wrecker will control benchmarking actions. Howeve,r in some situations a benchmark might require more control.

To facilitate more complex scenarios wrecker provide newStandaloneRecorder which provides a Recorder and Thread that processes the events, and a reference to the current stats.

sinkRecorder :: Logger -> Recorder -> IO (NextRef AllStats, Thread) Source #

collectEvent :: Logger -> NextRef AllStats -> Recorder -> IO () Source #

runAction :: Logger -> Int -> Int -> RunType -> (Recorder -> IO ()) -> Recorder -> IO () Source #

runWithNextVar :: Options -> (NextRef AllStats -> IO ()) -> (NextRef AllStats -> IO ()) -> (Recorder -> IO ()) -> IO AllStats Source #

printLoop :: Options -> DisplayContext -> Vty -> NextRef AllStats -> IO () Source #

updateUI :: Maybe Int -> DisplayContext -> AllStats -> IO () Source #

run :: Options -> [(String, Recorder -> IO ())] -> IO (HashMap String AllStats) Source #

run is the a lower level entry point, compared to defaultMain. Unlike defaultMain no command line argument parsing is performed. Instead, Options are directly passed in. defaultOptions can be used as a default argument for run.

Like defaultMain, run creates a Recorder and passes it each benchmark.