perf: increase old space size
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 30 Sep 2023 11:07:36 +0000 (13:07 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 30 Sep 2023 11:07:36 +0000 (13:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
package.json

index 4fccea21af32b8009dcdd598ff337d0a91191866..cfe575f596c62e647ec86dcf2f7181d9171a2044 100644 (file)
@@ -19,9 +19,9 @@
     "build:analyze": "rollup --config --environment ANALYZE,BUILD:development",
     "build:typedoc": "rollup --config --environment DOCUMENTATION,BUILD:development",
     "build:prod": "rollup --config",
-    "benchmark": "pnpm build && node -r source-map-support/register benchmarks/internal/bench.mjs",
-    "benchmark:debug": "pnpm build && node -r source-map-support/register --inspect benchmarks/internal/bench.mjs",
-    "benchmark:prod": "pnpm build:prod && node benchmarks/internal/bench.mjs",
+    "benchmark": "pnpm build && node --max-old-space-size=4096 -r source-map-support/register benchmarks/internal/bench.mjs",
+    "benchmark:debug": "pnpm build && node --max-old-space-size=4096 -r source-map-support/register --inspect benchmarks/internal/bench.mjs",
+    "benchmark:prod": "pnpm build:prod && node --max-old-space-size=4096 benchmarks/internal/bench.mjs",
     "test": "pnpm build --environment SOURCEMAP:false && c8 mocha 'tests/**/*.test.mjs'",
     "test:debug": "pnpm build && mocha --no-parallel --inspect 'tests/**/*.test.mjs'",
     "coverage": "c8 report --reporter=lcov",