Up

Module Test

Test.t are benchmarked by calls to bench.

Signature

type t = Test.t
val create : name:string -> ?key:int -> (unit -> 'a) -> t

Creates a simple benchmark. Here the benchmark may return some 'a which is then ignored. One should be careful when putting calls to ignore in benchmarks because OCaml versions 4.02 onwards can optimize away some ignored computations.

val create_indexed : name:string -> args:int list -> ?key:int -> (int -> (unit -> 'a) Core.Std.Staged.t) -> t

Creates a group of benchmarks indexed by a size. Also see comment on create about the 'a below.

val create_group : name:string -> t list -> t
val name : t -> string