Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/merlin/deps.ts>pretty_benching.prettyBenchmarkProgressOptions

Testing and Benchmarking framework for deno 🧙‍♂️
Latest
interface pretty_benching.prettyBenchmarkProgressOptions
import { type pretty_benching } from "https://deno.land/x/merlin@v1.0.7/deps.ts";
const { prettyBenchmarkProgressOptions } = pretty_benching;

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.