Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/merlin/deps.ts>pretty_benching.BenchIndicator

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

Defines an indicator that should be used for the matching benches

Properties

benches: RegExp

Selects which benches the indicator should be used for, by matching the RegExp against the bench names

optional
modFn: (str: string) => string | { indicator: string; visibleLength: number; }

Modifies the default indicator character to the returned string.

Note: If color functions are used, the nocolor option doesnt affect them

optional
color: (str: string) => string

Defines a color that should be assosiated with the matching benches. A simple std color function should be provided.

Note: If color functions are used, the nocolor option doesnt affect them