Module Core_bench.Bench
module Test : sig ... endTest.tare benchmarked by calls to bench.
module Variable : sig ... endVariable.ts represent variables than can be used as predictors or the responder when specifying a regression.
module Quota : sig ... endA quota can be specified as an amount of wall time, or a number of times to run the function.
module Run_config : sig ... endRun_config.tspecifies how a benchmark should be run.
module Display_config : sig ... endDisplay_config.tspecifies how the output tables should be formatted.
module Analysis_config : sig ... endEach
Analysis_config.tspecifies a regression run byCore_bench. This module also provides several typical regressions that one might want to run.
module Measurement : sig ... endA
Measurement.trepresents the result of measuring execution of aTest.t. It is used as input for subsequent analysis.
val make_command : Test.t list -> Core.Command.tmake_command testsis the easiest way to generate a command-line program that runs a list of benchmarks. Heretests : Test.t listare the benchmarks that should be run. This returns aCommand.twhich provides a command-line interface for running the benchmarks. See notes above for an example.
val bench : ?run_config:Run_config.t -> ?analysis_configs:Analysis_config.t list -> ?display_config:Display_config.t -> ?save_to_file:(Measurement.t -> string) -> ?libname:string -> Test.t list -> unitbench testswill run, analyze and display the specifiedtests. Use this when one needs more control over the execution parameters that what is exposed throughmake_command.benchcan also save the measurements of each test to the filename returned bysave_to_file.
val measure : ?run_config:Run_config.t -> Test.t list -> Measurement.t listmeasureis a fragment of the functionality ofbench.measure testswill run the specifiedtestsand return the resulting measurement results.
val analyze : ?analysis_configs:Analysis_config.t list -> Measurement.t -> Analysis_result.t Core.Or_error.tanalyzeis a fragment of the functionality ofbench.analyze ~analysis_configs mwill analyze the measurementmusing the regressions specified.
val display : ?libname:string -> ?display_config:Display_config.t -> Analysis_result.t list -> unitdisplayis a fragment of the functionality ofbench.display resultswill display a tabular summary ofresultson the terminal.
val make_command_ext : summary:string -> ((Analysis_config.t list * Display_config.t * [ `From_file of string list | `Run of (Measurement.t -> string) option * Run_config.t ]) -> unit) Core.Command.Param.t -> Core.Command.tmake_command_extis useful for creatingCommand.ts that have command line flags in addition to those provided bymake_command.