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

x/deno/std/testing/bench.ts

A modern runtime for JavaScript and TypeScript.
Go to Latest
import * as deno from "https://deno.land/x/deno@v0.28.0/std/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.