Skip to main content
Module

x/pretty_benching/types.ts>BenchIndicator

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

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