diff --git a/test/js/bun/perf/static-initializers.test.ts b/test/js/bun/perf/static-initializers.test.ts index c7b34016b5..cee693ada0 100644 --- a/test/js/bun/perf/static-initializers.test.ts +++ b/test/js/bun/perf/static-initializers.test.ts @@ -60,12 +60,10 @@ describe("static initializers", () => { .filter(line => line.includes("running initializer") && line.includes(bunExe())); // On both architectures, we have one initializer "__GLOBAL__sub_I_static.c". - // On x86_64 macOS: - // - we also have one from ___cpu_indicator_init due to our CPU feature detection. - // - SQLite3's function callbacks + // On x86_64, we also have one from ___cpu_indicator_init due to our CPU feature detection. expect( bunInitializers.length, `Do not add static initializers to Bun. Static initializers are called when Bun starts up, regardless of whether you use the variables or not. This makes Bun slower.`, - ).toBe(process.arch === "arm64" ? 1 : 3); + ).toBe(process.arch === "arm64" ? 1 : 2); }); });