Files
deepseek-harness/vitest.bench.config.ts
T
Turtle 12c33f6d0c test(bench): add scaled machine and memory-pressure report
Record budgeted benchmark endpoints and peak memory, and render a
self-contained interactive report that rescales measured times to
reviewed laptop and cloud profiles by single-thread CPU rating and
default-disk latency, and compares peaks with 4 GB and 8 GB of
available memory.
2026-10-07 20:42:30 +08:00

30 lines
1.1 KiB
TypeScript

import tsconfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from 'vitest/config'
import { standardDecoratorPlugin, vitestExecArgv } from './vitest.shared.ts'
/**
* CI performance gate. Node CPU cases use compiled plain-Node workers under
* `benchmarks/.dsh-build/`; browser cases drive built Client artifacts through
* the shared shipped-composition Web scaffold.
* Files run one at a time so a measurement never shares the CPU with another
* benchmark.
*/
export default defineConfig({
plugins: [tsconfigPaths({ projects: ['./tsconfig.base.json'] }), standardDecoratorPlugin()],
test: {
execArgv: vitestExecArgv,
setupFiles: ['./scripts/test-proxy-environment.ts'],
// Clears recorded timings before the run and renders benchmarks/.dsh-report/report.html after it.
globalSetup: ['./benchmarks/support/scaling-report.ts'],
include: [
'benchmarks/**/*.bench.ts',
'benchmarks/**/*.bench.client.ts',
],
fileParallelism: false,
maxWorkers: 1,
testTimeout: 600_000,
hookTimeout: 120_000,
disableConsoleIntercept: true,
},
})