package multicore-bench
Module Multicore_bench.CmdSource
Command line interface for a benchmark executable.
Source
type output = [ | `JSON| `Brief(*
*)`Briefgives concise human readable output.| `Diff of string(*
*)`Diff "path.json"gives concise human readable diff against results stored in specifiedpath.jsonfile.
]Specifies the output format.
Source
val run :
benchmarks:(string * Suite.t) list ->
?budgetf:float ->
?filters:string list ->
?debug:bool ->
?output:output ->
?argv:string array ->
?flush:bool ->
?randomize:bool ->
unit ->
unitrun ~benchmarks () interprets command line arguments and runs the benchmarks suites based on the arguments.
Optional arguments:
~budgetf: A budget (usually) in seconds passed to each benchmark suite. This defaults to a small number so that a benchmark suite can be used as a test.
~filters: A list of regular expressions to match names of benchmark suites. If any regular expression matches the name of benchmark, then that benchmark will be run. Defaults to[].
~debug: Print progress information to help debugging. Defaults tofalse.
~output: Output mode. Defaults to`JSON.
~argv: Array of command line arguments. Defaults toSys.argv.
~flush: Whether to flush the standard output after writing it. Defaults totrue.
~randomize: Whether to randomize the order of suites or not. Defaults totrue.
Command line arguments take precedence over the optional arguments. In other words, you can specify the optional arguments to give defaults for the benchmark executable.