pull/12099/head
Rich Harris 2 years ago
parent fa5b54a607
commit 222f5c8bf6

@ -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

@ -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": {

Loading…
Cancel
Save