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

std/testing/bench.ts>bench

Deno standard library
Go to Latest
function bench
Deprecated
Deprecated

Use Deno.bench() instead. See https://doc.deno.land/deno/unstable/~/Deno.bench for details.

Registers a benchmark as a candidate for the runBenchmarks executor.

import { bench } from "https://deno.land/std@0.138.0/testing/bench.ts";

Parameters

benchmark: BenchmarkDefinition | BenchmarkFunction