Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dex/lib/deps/testing/bench.ts>runIfMain

Dex: An SQL query builder port of Knex for Deno
Latest
function runIfMain
import { runIfMain } from "https://deno.land/x/dex@1.0.2/lib/deps/testing/bench.ts";

Runs specified benchmarks if the enclosing script is main.

Parameters

optional
opts: BenchmarkRunOptions = [UNSUPPORTED]

Returns

Promise<void>