initial commit
This commit is contained in:
25
benchmarks/helpers/bench-options.ts
Normal file
25
benchmarks/helpers/bench-options.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user