summaryrefslogtreecommitdiff
path: root/benchmark/bench/memory.js
diff options
context:
space:
mode:
authorGravatar Princesseuh <3019731+Princesseuh@users.noreply.github.com> 2024-08-28 17:25:13 +0200
committerGravatar Princesseuh <3019731+Princesseuh@users.noreply.github.com> 2024-08-28 17:25:13 +0200
commit68601a954907ef77470e7a5cf9d4c8ff89fe2c99 (patch)
tree38c4cf4836b9876cb2b093efb5a1a3c193719179 /benchmark/bench/memory.js
parent93932432e7239a1d31c68ea916945302286268e9 (diff)
parent26893f9a356e49c5c49052bd36f8b2e7e04edf4d (diff)
downloadastro-68601a954907ef77470e7a5cf9d4c8ff89fe2c99.tar.gz
astro-68601a954907ef77470e7a5cf9d4c8ff89fe2c99.tar.zst
astro-68601a954907ef77470e7a5cf9d4c8ff89fe2c99.zip
Merge branch 'main' into next
Diffstat (limited to 'benchmark/bench/memory.js')
-rw-r--r--benchmark/bench/memory.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/benchmark/bench/memory.js b/benchmark/bench/memory.js
index 3a437b3fe..f1846204f 100644
--- a/benchmark/bench/memory.js
+++ b/benchmark/bench/memory.js
@@ -1,4 +1,4 @@
-import { execaCommand } from 'execa';
+import { exec } from 'tinyexec';
import { markdownTable } from 'markdown-table';
import fs from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
@@ -18,11 +18,13 @@ export async function run(projectDir, outputFile) {
const outputFilePath = fileURLToPath(outputFile);
console.log('Building and benchmarking...');
- await execaCommand(`node --expose-gc --max_old_space_size=10000 ${astroBin} build --silent`, {
- cwd: root,
- stdio: 'inherit',
- env: {
- ASTRO_TIMER_PATH: outputFilePath,
+ await exec('node', ['--expose-gc', '--max_old_space_size=10000', astroBin, 'build'], {
+ nodeOptions: {
+ cwd: root,
+ stdio: 'inherit',
+ env: {
+ ASTRO_TIMER_PATH: outputFilePath,
+ },
},
});