package ppx_bench

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.1.tar.gz
md5=496d7d989656c95860cf2434e1d8e0e0
sha512=7492c19b408709368f5a1ed020bea2c439ff562f765cd706637dbfb7ecdfc33478f9dd814fcf195292bf634769ae95f8b89b5b33b714e0fd6248f0754e1d37a4

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

Module Benchmark_accumulator.EntrySource

Sourcetype ('param, 'a) parameterised_spec = {
  1. arg_name : string;
  2. params : (string * 'param) list;
    (*

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

    *)
  3. thunk : 'param -> unit -> 'a;
}
Sourcetype test_spec =
  1. | Regular_thunk : ([ `init ] -> unit -> 'a) -> test_spec
  2. | Parameterised_thunk : ('param, 'a) parameterised_spec -> test_spec
Sourcetype 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;
}
Sourceval with_test_spec : t -> test_spec -> t
Sourceval compare : t -> t -> int
Sourceval get_module_name_opt : t -> string option
OCaml

Innovation. Community. Security.