Mavryk_benchmark.Generator
type 'aspect probe = {
apply : 'a. 'aspect -> (unit -> 'a) -> 'a;
aspects : unit -> 'aspect list;
get : 'aspect -> float list;
}
A probe
implements an instrumented apply
function. The implementation of apply
is meant to record in a side-effecting way the result of a benchmark for the given closure. get
allows to retrieve the results.
type 'workload benchmark =
The type of benchmarks. Measurements of benchmarks are directly calculated by measure
or measured as the execution time of closure
. Some benchmark requires to set-up/cleanup artifacts when being run, in that case use With_context
with a proper implementation of the with_context
function.
module type S = sig ... end