Skip to main content
Module

std/testing/bench.ts>runIfMain

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

Runs specified benchmarks if the enclosing script is main.

Parameters

optional
opts: BenchmarkRunOptions = [UNSUPPORTED]

Returns

Promise<void>