refactor: cleanup benchmarking code
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 13 May 2024 15:49:10 +0000 (17:49 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Mon, 13 May 2024 15:49:10 +0000 (17:49 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.vscode/launch.json
benchmarks/internal/bench.mjs

index f3ee906a97792bd1633cb675a79483f0bb2ba636..c750ba521b44f23963d861d73e235c2343f01c66 100644 (file)
       "skipFiles": ["<node_internals>/**"],
       "stopOnEntry": true
     },
-    {
-      "type": "node",
-      "request": "launch",
-      "name": "Launch Benchmark.js Benchmark Debug",
-      "cwd": "${workspaceFolder}",
-      "runtimeExecutable": "pnpm",
-      "runtimeArgs": ["run", "benchmark:benchmark.js:debug"],
-      "skipFiles": ["<node_internals>/**"],
-      "stopOnEntry": true
-    },
     {
       "type": "node",
       "request": "launch",
index 0e3ee055a474e5a439c5a9b1fcde3de218271193..3f467f9ea49689d642a4b9eae087416d806a9735 100644 (file)
@@ -1,5 +1,5 @@
 import { writeFileSync } from 'node:fs'
-import { env, exit } from 'node:process'
+import { env } from 'node:process'
 // eslint-disable-next-line n/no-unsupported-features/node-builtins
 import { parseArgs } from 'node:util'
 
@@ -99,5 +99,3 @@ switch (
       writeFileSync(benchmarkReportFile, JSON.stringify(benchmarkReport))
     break
 }
-
-exit()