UNPKG

eslint-rule-benchmark

Version:

Benchmark ESLint rules with detailed performance metrics for CI and plugin development

21 lines (20 loc) 651 B
import { Bench } from 'tinybench' /** Options for configuring a benchmark instance. */ interface CreateBenchOptions { /** Number of warmup iterations to perform. */ warmupIterations?: number /** Number of iterations to run. */ iterations?: number /** Timeout in milliseconds. */ timeoutMs?: number /** Whether to enable warmup runs. */ warmup?: boolean } /** * Creates a Tinybench benchmark instance with the specified configuration. * * @param options - Benchmark configuration options. * @returns Configured Tinybench instance ready for use. */ export declare function createBench(options?: CreateBenchOptions): Bench export {}