Skip to main content
Module

x/pretty_benching/pretty_benchmark_progress.ts>prettyBenchmarkProgressOptions

:sauropod: A small lib to make your Deno benchmarking progress and results look pretty
Latest
interface prettyBenchmarkProgressOptions
import { type prettyBenchmarkProgressOptions } from "https://deno.land/x/pretty_benching@v0.3.3/pretty_benchmark_progress.ts";

Defines how the resulting output should look like.

Properties

optional
thresholds: Thresholds

If provided, the results will be colored accordingly

optional
indicators: BenchIndicator[]

If provided, the indicators will be placed before the specific benches

optional
rowExtras: (result: BenchmarkResult, options: prettyBenchmarkProgressOptions) => string

Adds the returned string at the end of each finished benchmark row

optional
nocolor: boolean

Strips all default colors from the output.

Note: it doesnt strip the colors that come through user defined thresholds and indicators

optional
outputFn: (log: string) => unknown

Overrides the default output function, which is console.log.