Files
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

20 lines
661 B
TypeScript

import codspeedPlugin from '@codspeed/vitest-plugin';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [process.env.CODSPEED ? codspeedPlugin() : null].filter(Boolean),
test: {
benchmark: {
include: ['benchmarks/**/*.bench.ts'],
// Run each benchmark longer for more stable results
// Default is 500ms - we use 1000ms for ~2x more samples
time: 1000,
// Warmup: ensure JIT compilation is complete before measuring
// Default is 5 iterations - we use 100 for more thorough warmup
warmupIterations: 100,
// Default warmup time is 100ms - we use 500ms for stability
warmupTime: 500,
},
},
});