Up

Module Deprecated_async_bench

Signature

module Test : sig .. end
Param [gc_prefs] can be used to change the GC settings during testing
Param [no_compactions] can be used to disable GC compactions.
Both of these are reset after the benchmarking is done and no_compactions takes precedence over gc_prefs.
Param [verbosity] (default `Low)
  • `Low will print only the output of the benchmarking
  • `Mid will additionally print time estimates and a status line
  • `High will additionally print information at each step
Param [fast] (default false) perform 1/100th as many tests
Param [clock] (default `Wall)
  • `Wall will include waiting on I/O or when process is suspended/descheduled
  • `Cpu will only count time spent on computations.

bench foo is equivalent to print (bench_raw foo).

Param [shutdown_after] (default false) shut down the Async scheduler after all tests are run.

Returns a list documenting the runtimes rather than printing to stdout. These can be fed to print for results identical to calling bench.