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

Enums

Defines the states BenchmarkRunProgress can be in

Functions

f
bench
deprecated
f
clearBenchmarks
deprecated
f
runBenchmarks
deprecated

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.