std/testing/bench.ts

Deno standard library
Go to Latest
interface BenchmarkDefinition
import { type BenchmarkDefinition } from "https://deno.land/std@0.151.0/testing/bench.ts?s=BenchmarkDefinition";

Defines a benchmark definition with configurable runs.

Properties

name: string[src]
optional
runs: number
[src]

Defines how many times the provided func should be benchmarked in succession