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.63.0/testing/bench.ts";

Enums

Defines the states BenchmarkRunProgress can be in

Functions

Registers a benchmark as a candidate for the runBenchmarks executor.

Clears benchmark candidates which name matches only and doesn't match skip. Removes all candidates if options were not provided

Runs all registered and non-skipped benchmarks serially.

Interfaces

Defines clearBenchmark's constraints by matching benchmark names.

Defines a benchmark definition with configurable runs.

Defines a benchmark through a named function.

Defines the result of a single benchmark

Defines runBenchmark's run constraints by matching benchmark names.

Defines the current progress during the run of runBenchmarks

Defines the result of a runBenchmarks call

Provides methods for starting and stopping a benchmark clock.