Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/testing/bench.ts>bench

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
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.146.0/testing/bench.ts";