SBench-0.2.0: A benchmark suite for runtime and heap measurements over a series of inputs.

Safe HaskellNone

Test.SBench.File.FileOps

Synopsis

Documentation

criterion2series :: Num a => [a] -> CriterionFile -> IO [(a, Double)]Source

Read the mean runtimes of a criterion data file and tuple them with seeds to a seed-runtime series.

series2sbenchSource

Arguments

:: (Show a, Real a, Show b, Real b) 
=> (String, String)

(build options, runtime options) used for the measurement.

-> Maybe EvalMod

Evaluation mode for the input (e.g. as given to criterion for time measurements)

-> Algorithm (c -> d)

The function tested.

-> DataGen (e -> c)

The data generator used.

-> Title

Name the measurement should get when the graph is plotted.

-> SBenchFile

File the data should be stored in.

-> [(a, b)]

Data.

-> IO SBenchFile

The generated data file.

Store a series of measurements over different inputs in a .sbench file. The SBench file format take some extra information about the measurement.

series2sbench'Source

Arguments

:: (Show a, Real a, Show b, Real b) 
=> (String, String)

(build options, runtime options) used for the measurement.

-> Maybe EvalMod

Evaluation mode for the input (e.g. as given to criterion for time measurements)

-> Algorithm (c -> d)

The function tested.

-> Data c

The data used.

-> Title

Name the measurement should get when the graph is plotted.

-> SBenchFile

File the data should be stored in.

-> [(a, b)]

Data.

-> IO SBenchFile

The generated data file.

Store a series of measurements with a single input in a .sbench file. The SBench file format take some extra information about the measurement.

sbench2series :: FilePath -> IO (MetaInfo Double Double, [(Double, Double)])Source

Read a measurment series from a .sbench data file. Additionally to the measurement series a data structure with meta informations is returned.