Files
puter/src/backend/vitest.bench.config.ts
T
KernelDeimos 49b90bde12 test: add benchmark config and first unit bench
Adds the necessary configuration and the `npm run bench` script, as well
as the first benchmark to verify everything is working. The first
benchmark is permissionUtils. This is important to benchmark because
permission strings are used often and there is some non-trivial logic
such as escaping of full-colon characters. Other overheads like database
access will be much more significant, but it may be useful to know how
much more significant in quantifiable terms.
2025-12-19 15:49:38 -05:00

14 lines
320 B
TypeScript

// vitest.bench.config.ts - Vitest benchmark configuration for Puter backend
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
benchmark: {
include: ['src/**/*.bench.{js,ts}'],
reporters: ['default'],
},
root: __dirname,
},
});