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