diff --git a/benchmarking/compare.js b/benchmarking/compare/index.js similarity index 88% rename from benchmarking/compare.js rename to benchmarking/compare/index.js index 91d0519ea0..2e1fa21527 100644 --- a/benchmarking/compare.js +++ b/benchmarking/compare/index.js @@ -2,7 +2,7 @@ import fs from 'node:fs'; import path from 'node:path'; import { execSync } from 'node:child_process'; import { fileURLToPath } from 'node:url'; -import { benchmarks } from './benchmarks.js'; +import { benchmarks } from '../benchmarks.js'; if (execSync('git status --porcelain').toString().trim()) { console.error('Working directory is not clean'); @@ -42,7 +42,7 @@ for (const branch of branches) { results.push(result); } - fs.writeFileSync(`${results}/${branch}.json`, JSON.stringify(a_results, null, ' ')); + fs.writeFileSync(`${results}/${branch}.json`, JSON.stringify(results, null, ' ')); } // TODO compare the results diff --git a/package.json b/package.json index b2392d068b..ee8dc4f836 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "changeset:version": "changeset version && pnpm -r generate:version && git add --all", "changeset:publish": "changeset publish", "bench": "node --allow-natives-syntax ./benchmarking/run.js", - "bench:compare": "node --allow-natives-syntax ./benchmarking/compare.js", + "bench:compare": "node --allow-natives-syntax ./benchmarking/compare/index.js", "bench:debug": "node --allow-natives-syntax --inspect-brk ./benchmarking/run.js" }, "devDependencies": {