summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bench/cli-startup.js2
-rw-r--r--benchmark/bench/memory.js1
-rw-r--r--benchmark/bench/render.js2
-rw-r--r--benchmark/bench/server-stress.js1
4 files changed, 5 insertions, 1 deletions
diff --git a/benchmark/bench/cli-startup.js b/benchmark/bench/cli-startup.js
index 6f2555499..2e9eccf64 100644
--- a/benchmark/bench/cli-startup.js
+++ b/benchmark/bench/cli-startup.js
@@ -45,7 +45,7 @@ async function benchmarkCommand(command, args, root) {
for (let i = 0; i < 10; i++) {
const start = performance.now();
- await exec(command, args, { nodeOptions: { cwd: root } });
+ await exec(command, args, { nodeOptions: { cwd: root }, throwOnError: true });
durations.push(performance.now() - start);
}
diff --git a/benchmark/bench/memory.js b/benchmark/bench/memory.js
index f1846204f..9a3f94bc7 100644
--- a/benchmark/bench/memory.js
+++ b/benchmark/bench/memory.js
@@ -26,6 +26,7 @@ export async function run(projectDir, outputFile) {
ASTRO_TIMER_PATH: outputFilePath,
},
},
+ throwOnError: true,
});
console.log('Raw results written to', outputFilePath);
diff --git a/benchmark/bench/render.js b/benchmark/bench/render.js
index aee04f2b5..8dfd47fbb 100644
--- a/benchmark/bench/render.js
+++ b/benchmark/bench/render.js
@@ -25,6 +25,7 @@ export async function run(projectDir, outputFile) {
cwd: root,
stdio: 'inherit',
},
+ throwOnError: true,
});
console.log('Previewing...');
@@ -33,6 +34,7 @@ export async function run(projectDir, outputFile) {
cwd: root,
stdio: 'inherit',
},
+ throwOnError: true,
});
console.log('Waiting for server ready...');
diff --git a/benchmark/bench/server-stress.js b/benchmark/bench/server-stress.js
index 18b31c71c..9e93c4cd9 100644
--- a/benchmark/bench/server-stress.js
+++ b/benchmark/bench/server-stress.js
@@ -24,6 +24,7 @@ export async function run(projectDir, outputFile) {
cwd: root,
stdio: 'inherit',
},
+ throwOnError: true,
});
console.log('Previewing...');