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

std/testing/bench.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.36.0/testing/bench.ts";

Functions

Registers a benchmark as a candidate for the runBenchmarks executor.

Runs all registered and non-skipped benchmarks serially.

Runs specified benchmarks if the enclosing script is main.

Interfaces

Defines a benchmark definition with configurable runs.

Defines a benchmark through a named function.

Defines runBenchmark's run constraints by matching benchmark names.

Provides methods for starting and stopping a benchmark clock.