Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/merlin/deps.ts>pretty_benching.prettyBenchmarkHistory#getDeltaForBenchmark

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

Calculates deltas for given BenchmarkResult for each provided property key.

Keys are either measuredRunsAvgMs, totalMs or point to number properties of the calculated extras. Error is thrown, when a key points to a non number property. No delta is calculated for key's which are not present in the extras

Returns false when there is no history for the given benchmark.

Parameters

result: BenchmarkResult
optional
keys: DeltaKey<T>[] = [UNSUPPORTED]