ppx_bench

Syntax extension for writing in-line benchmarks in ocaml code
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library ppx_bench.runtime-lib
type ('param, 'a) parameterised_spec = {
arg_name : string;
params : (string * 'param) list;(*

The first coordinate is some string representation of the second coordinate.

*)
thunk : 'param -> unit -> 'a;
}
type test_spec =
| Regular_thunk : ( [ `init ] -> unit -> 'a ) -> test_spec
| Parameterised_thunk : ( 'param, 'a ) parameterised_spec -> test_spec
type t = private {
unique_id : int;
code : string;
type_conv_path : string;
name : string;
filename : string;
line : int;
startpos : int;
endpos : int;
test_spec : test_spec;
bench_module_name : string option;
}
val with_test_spec : t -> test_spec -> t
val compare : t -> t -> int
val get_module_name_opt : t -> string option