Module

std/testing/bench.ts>runIfMain

Deno standard library
Go to Latest
function runIfMain
import { runIfMain } from "https://dotland.deno.dev/std@0.36.0/testing/bench.ts";

Runs specified benchmarks if the enclosing script is main.

Parameters

meta: ImportMeta
optional
opts: BenchmarkRunOptions = [UNSUPPORTED]

Returns

Promise<void>