Skip to main content
Module

x/pretty_benching/common.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/common.ts";

Functions

Calculates the min, max, mean (as (max+min)/2) and median from the measuredRunsMs array.

Calculates the standard deviation from the measuredRunsMs array.

Gets the correct indicator for the named bench

Handles the padding of indicators to specific lengths

Returns the range into which the benchmarks with had a threshold set fell.

strips terminal color