Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function runBenchmarks
import { runBenchmarks } from "https://deno.land/std@0.68.0/testing/bench.ts";

Runs all registered and non-skipped benchmarks serially.

Parameters

optional
unnamed 0: BenchmarkRunOptions = [UNSUPPORTED]

provides the possibility to get updates of the current progress during the run of the benchmarking

optional
progressCb: (progress: BenchmarkRunProgress) => void | Promise<void>

Returns

Promise<BenchmarkRunResult>

results of the benchmarking