Skip to content

Commit

Permalink
Fix (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored Nov 7, 2024
1 parent b7b4511 commit 6b8c02f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions bin/setup-bench.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,11 @@ try {
const output =
await $`node --single-threaded-gc ./node_modules/tracerbench/bin/run compare --regressionThreshold 25 --sampleTimeout 60 --fidelity ${fidelity} --markers ${markers} --controlURL ${CONTROL_URL} --experimentURL ${EXPERIMENT_URL} --report --headless --cpuThrottleRate ${throttleRate}`;

try {
fs.writeFileSync(
'tracerbench-results/msg.txt',
output.stdout.split('Benchmark Results Summary').pop() ?? ''
);
} catch (e) {
// fine
}
fs.ensureDirSync('tracerbench-results');
fs.writeFileSync(
'tracerbench-results/msg.txt',
output.stdout.split('Benchmark Results Summary').pop() ?? ''
);
} catch (p) {
console.error(p);
process.exit(1);
Expand Down

0 comments on commit 6b8c02f

Please sign in to comment.