From 1998c21dd5781109b162dca59f57246e2131578f Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:59:06 -0500 Subject: [PATCH] Fix --- bin/setup-bench.mjs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bin/setup-bench.mjs b/bin/setup-bench.mjs index 5bc2650d6..c0564cb6f 100644 --- a/bin/setup-bench.mjs +++ b/bin/setup-bench.mjs @@ -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);