From 56d4480e5fe3daa643dd9e180d12a82a22b2fd06 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 6 Sep 2025 00:51:14 -0700 Subject: [PATCH] Revert "Update static-initializers.test.ts" This reverts commit 1977b029d8401855cadf8f76894f1c1f5b0e91ac. --- test/js/bun/perf/static-initializers.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); }); });