From 768197ecc87b59275bf71977f19db76203d82b66 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 3 Dec 2026 23:35:46 -0500 Subject: [PATCH] fix: compile wasm eagerly in benchmarks --- vitest.config.mts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vitest.config.mts b/vitest.config.mts index 57e75405..6990aff5 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -16,6 +16,9 @@ export default defineConfig({ name: 'bench', benchmark: { enabled: true, include: ['**/*.bench.ts'] }, experimental: { viteModuleRunner: false }, + // tty's wasm otherwise compiles lazily and tiers up mid-run; those native + // allocations land on whichever bench triggers them (e.g. the first one) + execArgv: ['--no-liftoff', '--no-wasm-lazy-compilation'], }, }, ],