package ppx_bench

  1. Overview
  2. Docs
Syntax extension for writing in-line benchmarks in ocaml code

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_bench-v0.13.0.tar.gz
sha256=6f37851e928595544e48204159b28366ed6e671c0d2a6a5b2d67f12c0cd7984b
md5=d800ee5e0b2a12401ba40e16865eabae

doc/ppx_bench.runtime-lib/Ppx_bench_lib/Benchmark_accumulator/Entry/index.html

Module Benchmark_accumulator.Entry

type 'a indexed_spec = {
  1. arg_name : string;
  2. arg_values : int list;
  3. thunk : int -> unit -> 'a;
}
type test_spec =
  1. | Regular_thunk : ([ `init ] -> unit -> 'a) -> test_spec
  2. | Indexed_thunk : 'a indexed_spec -> test_spec
type t = private {
  1. unique_id : int;
  2. code : string;
  3. type_conv_path : string;
  4. name : string;
  5. filename : string;
  6. line : int;
  7. startpos : int;
  8. endpos : int;
  9. test_spec : test_spec;
  10. bench_module_name : string option;
}
val compare : t -> t -> int
val get_indexed_arg_name : t -> string option
val get_module_name_opt : t -> string option
OCaml

Innovation. Community. Security.