Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface BenchmarkResult
import { type BenchmarkResult } from "https://deno.land/std@0.100.0/testing/bench.ts";

Defines the result of a single benchmark

Properties

name: string

The name of the benchmark

totalMs: number

The total time it took to run a given bechmark

runsCount: number

Times the benchmark was run in succession.

measuredRunsAvgMs: number

The average time of running the benchmark in milliseconds.

measuredRunsMs: number[]

The individual measurements in milliseconds it took to run the benchmark.