eslint-rule-benchmark
Version:
Benchmark ESLint rules with detailed performance metrics for CI and plugin development
68 lines (67 loc) • 1.97 kB
TypeScript
/**
* Number of warmup iterations before actual benchmarking. Lower values speed up
* total benchmark time, but may lead to less stable results.
*/
export declare const DEFAULT_WARMUP_ITERATIONS: 100
/**
* Target time in milliseconds for each warmup phase. This controls how long the
* warmup phase will try to run.
*/
export declare const DEFAULT_WARMUP_TIME_MS: 500
/**
* Whether warmup phase is enabled by default. Warmup helps stabilize JIT
* compilation before actual measurements.
*/
export declare const DEFAULT_WARMUP_ENABLED: true
/**
* Target time in milliseconds for benchmarking. This is NOT a timeout limit,
* but rather how long Tinybench will try to run iterations to gather
* statistically significant results. Lower values result in fewer iterations
* and faster overall completion.
*/
export declare const DEFAULT_TIMEOUT_MS: 5000
/**
* Minimum number of benchmark iterations to perform. Actual number may be
* higher if iterations complete quickly.
*/
export declare const DEFAULT_ITERATIONS: 1000
/**
* Default severity level for benchmark results. This is used to determine the
* severity of the benchmark results in the output report.
*/
export declare const DEFAULT_SEVERITY: 2
/**
* Default output format for benchmark results. Options include: 'console',
* 'json', 'markdown', 'html'.
*/
export declare const DEFAULT_REPORTER_FORMAT: 'console'
/**
* Extensions that are supported by the benchmark runner. This is used to
* determine which files can be run as benchmarks.
*/
export declare const SUPPORTED_EXTENSIONS: readonly [
'js',
'mjs',
'cjs',
'jsx',
'ts',
'mts',
'cts',
'tsx',
'astro',
'svelte',
'vue',
]
/**
* Supported languages for the benchmark. This is used to determine which
* language a file belongs to based on its extension.
*/
export declare const LANGUAGES: readonly [
'typescript-react',
'javascript-react',
'javascript',
'typescript',
'svelte',
'astro',
'vue',
]