Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pretty_benching/pretty_benchmark_down.ts

:sauropod: A small lib to make your Deno benchmarking progress and results look pretty
Latest
import * as prettyBenching from "https://deno.land/x/pretty_benching@v0.3.3/pretty_benchmark_down.ts";

Functions

Defines the default ColumnDefinitions, which are Name, Runs, Total (ms) and Average (ms)

Defines multiple columns, which contain extra calculated values, like max, min, mean, median, stdDeviation.

Defines a column which contains the indicators for the benchmarks, where provided.

Returns a function that expects a BenchmarkRunResult, which than prints the results in a nicely formatted markdown, based on the provided options.

Defines a threshold result column, which shows into which range the benchmark fell. Shows - when no Threshold was provided for the given benchmark.

Defines a threshold result column, which shows the threshold ranges for the benchmark. Shows - when no Threshold was provided for the given benchmark.

Interfaces

Defines one column of the markdown table.

Defines a group in the markdown.

Defines how the generated markdown should look like.