mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-13 17:51:36 +00:00
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.
14 lines
320 B
TypeScript
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,
|
|
},
|
|
});
|
|
|