ppx_bench
Syntax extension for writing in-line benchmarks in ocaml code
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library ppx_bench.runtime-lib
module Current_libname : sig ... end
module Entry : sig ... end
add_environment_var
returns true if the benchmarks should be added to the hashtable
val lookup_lib : libname:string -> Entry.t list
lookup_lib
returns all the benchmarks from the specified library
val add_bench :
name:string ->
code:string ->
filename:string ->
type_conv_path:string ->
line:int ->
startpos:int ->
endpos:int ->
Entry.test_spec ->
unit
add_bench
registers benchmarks with the global hashtable maintained in ppx_bench_lib
. This is meant to be called by the code generated for the BENCH and BENCH_INDEXED macros