Skip to main content
Module

x/pretty_benching/pretty_benchmark_history.ts>BenchmarkHistoryRunItem

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

Represents the results of one benchmark's single run.

Type Parameters

optional
T = unknown

The type that is calculated with benchExtras function and stored in each benchmarks' extras.

Properties

totalMs: number

The total time it took to run a given bechmark

runsCount: number

Times the benchmark was run in succession.

measuredRunsAvgMs: number

The average time of running the benchmark in milliseconds.

optional
measuredRunsMs: number[]

The individual measurements in milliseconds it took to run the benchmark.

Gets saved only, when saveIndividualRuns is set in the options.

optional
extras: T

The object calculated by benchExtras function if provided in the options.