import { type pretty_benching } from "https://deno.land/x/merlin@v1.0.7/deps.ts";
const { prettyBenchmarkHistoryOptions } = pretty_benching;
Defines the rules on what and how the history should contain.
Properties
optional
strict: boolean | strictHistoryRulesTurns on strict mode. Setting it to boolean true
gives the same result as setting each rule to true
in the rules object
.
Throw an error, when any benchmark has lower runsCount than the set value.
Saves the measuredRunsMs
array for each benchmark.
WARNING this could result in a very big history file overtime.
Consider calculating necessary values before save instead with benchExtras
or runExtras
.
optional
benchExtras: (result: BenchmarkResult) => TSaves the returned object
for each benchmark into it's extras
property.
optional
runExtras: (runResult: BenchmarkRunResult) => KSaves the returned object
for each run into it's runExtras
property.