summaryrefslogtreecommitdiff
path: root/benchmark/bench/memory.js
diff options
context:
space:
mode:
authorGravatar bluwy <bjornlu.dev@gmail.com> 2024-11-06 23:17:39 +0800
committerGravatar bluwy <bjornlu.dev@gmail.com> 2024-11-06 23:17:39 +0800
commit7db86cf2b75c547b5947bc1a10f21d2e3e56e9da (patch)
tree115d93a2565958a069462d4e39446059e6395339 /benchmark/bench/memory.js
parentc280655655cc6c22121f32c5f7c76836adf17230 (diff)
parente10b03e88c22592fbb42d7245b65c4f486ab736d (diff)
downloadastro-7db86cf2b75c547b5947bc1a10f21d2e3e56e9da.tar.gz
astro-7db86cf2b75c547b5947bc1a10f21d2e3e56e9da.tar.zst
astro-7db86cf2b75c547b5947bc1a10f21d2e3e56e9da.zip
Merge branch 'main' into next
Diffstat (limited to 'benchmark/bench/memory.js')
-rw-r--r--benchmark/bench/memory.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/benchmark/bench/memory.js b/benchmark/bench/memory.js
index f1846204f..4f9153cc0 100644
--- a/benchmark/bench/memory.js
+++ b/benchmark/bench/memory.js
@@ -1,7 +1,7 @@
-import { exec } from 'tinyexec';
-import { markdownTable } from 'markdown-table';
import fs from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
+import { markdownTable } from 'markdown-table';
+import { exec } from 'tinyexec';
import { astroBin } from './_util.js';
/** @typedef {Record<string, import('../../packages/astro/src/core/config/timer').Stat>} AstroTimerStat */
@@ -26,6 +26,7 @@ export async function run(projectDir, outputFile) {
ASTRO_TIMER_PATH: outputFilePath,
},
},
+ throwOnError: true,
});
console.log('Raw results written to', outputFilePath);
@@ -55,6 +56,6 @@ function printResult(output) {
],
{
align: ['l', 'r', 'r', 'r'],
- }
+ },
);
}