From b2320a3ba32f87437b92e3c72270363d76e9a733 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 6 Feb 2026 14:12:24 -0800 Subject: [PATCH] Fix: Sort tests numerically in script --- scripts/run-benchmark.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/run-benchmark.js b/scripts/run-benchmark.js index 02adcb1..1df5923 100644 --- a/scripts/run-benchmark.js +++ b/scripts/run-benchmark.js @@ -72,7 +72,11 @@ const main = async () => { if (sModel && !allModels.includes(sModel)) throw new Error(`Model "${sModel}" not found in README.`); const models = sModel ? [sModel] : allModels; - const testDirs = (await fs.readdir(TESTS, { withFileTypes: true })).filter(d => d.isDirectory()).map(d => d.name).sort(); + const testDirs = (await fs.readdir(TESTS, { withFileTypes: true })) + .filter(d => d.isDirectory()) + .map(d => d.name) + .sort((a, b) => parseInt(a) - parseInt(b)); + let targetTests = []; const candidates = sTest