CurryInfo: benchmark-papers-3.0.0 / Test.Benchmark.runOn

definition:
 
runOn :: (a -> Benchmark b) -> [a] -> Benchmark [(a,b)]
runOn bench xs =
  benchmark $ mapM (\x -> execBench (bench x) >>= \y -> return (x,y)) xs
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
Runs a parameterized benchmark on a list of input data.
The result is a benchmark returning a list of pairs consisting
of the input data and the benchmark result for this input data.

@param bench - the benchmark parameterized by the input data
@param benchdata - the list of input data for the benchmarks
@return Benchmark with the list of input data and benchmark results pairs
failfree:
 (_, _)
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {(_,_) |-> _}
name:
 runOn
precedence:
 no precedence defined
result-values:
 _
signature:
 (a -> Benchmark b) -> [a] -> Benchmark [(a, b)]
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 reducible on all ground data terms