diff options
Diffstat (limited to 'benchmark/bench/memory.js')
-rw-r--r-- | benchmark/bench/memory.js | 14 |
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, + }, }, }); |