26 lines
611 B
TypeScript
26 lines
611 B
TypeScript
import type { BenchOptions } from 'vitest';
|
|
|
|
/** Standard options for most benchmarks — 500ms run time, 100 min iterations */
|
|
export const STANDARD: BenchOptions = {
|
|
time: 500,
|
|
iterations: 100,
|
|
warmupTime: 100,
|
|
warmupIterations: 5,
|
|
};
|
|
|
|
/** Extended options for async/expensive benchmarks — 1s run time */
|
|
export const EXTENDED: BenchOptions = {
|
|
time: 1000,
|
|
iterations: 25,
|
|
warmupTime: 250,
|
|
warmupIterations: 3,
|
|
};
|
|
|
|
/** Quick options for allocation/memory pattern benchmarks */
|
|
export const QUICK: BenchOptions = {
|
|
time: 250,
|
|
iterations: 500,
|
|
warmupTime: 50,
|
|
warmupIterations: 10,
|
|
};
|