[][src]Module molt_shell::bench

Molt Benchmark Harness

A Molt benchmark script is a Molt script containing benchmarks of Molt code. Each benchmark is a call of the Molt benchmark command provided by the molt_shell::bench module. The benchmarks are executed in the context of the the application's molt::Interp (and so can benchmark application-specific commands).

The harness executes each benchmark many times and retains the average run-time in microseconds. The molt-app tool provides access to the test harness for a standard Molt interpreter.

See the Molt Book (or the Molt benchmark suite) for how to write benchmarks and examples of benchmark scripts.

Functions

benchmark

Executes the Molt benchmark harness, given the command-line arguments, in the context of the given interpreter.