Benchmark measurement code.
- initializeTime :: IO ()
- getTime :: IO Double
- getCPUTime :: IO Double
- getCycles :: IO Word64
- getGCStats :: IO (Maybe GCStats)
- secs :: Double -> String
- measure :: Benchmarkable -> Int64 -> IO (Measured, Double)
- runBenchmark :: Benchmarkable -> Double -> IO (Vector Measured, Double)
- measured :: Measured
- applyGCStats :: Maybe GCStats -> Maybe GCStats -> Measured -> Measured
- threshold :: Double
Return the current wallclock time, in seconds since some arbitrary time.
You must call
initializeTime once before calling this function!
Return the amount of elapsed CPU time, combining user and kernel (system) time into a single measure.
Try to get GC statistics, bearing in mind that the GHC runtime
will throw an exception if statistics collection was not enabled
Convert a number of seconds to a string. The string will consist of four decimal places, followed by a short description of the time units.
Measure the execution of a benchmark a given number of times.
Lower bound on how long the benchmarking process should take. In practice, this time limit may be exceeded in order to generate enough data to perform meaningful statistical analyses.
|-> IO (Vector Measured, Double)|
Run a single benchmark, and return measurements collected while executing it, along with the amount of time the measurement process took.
|:: Maybe GCStats|
Statistics gathered at the __end__ of a run.
|-> Maybe GCStats|
Statistics gathered at the __beginning__ of a run.
Value to "modify".
Apply the difference between two sets of GC statistics to a measurement.
The amount of time a benchmark must run for in order for us to have some trust in the raw measurement.
We set this threshold so that we can generate enough data to later perform meaningful statistical analyses.
The threshold is 30 milliseconds. One use of
accumulate more than 300 milliseconds of total measurements above
this threshold before it will finish.