Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function runIfMain
import { runIfMain } from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/testing/bench.ts";

Runs specified benchmarks if the enclosing script is main.

Parameters

optional
opts: BenchmarkRunOptions = [UNSUPPORTED]

Returns

Promise<void>