From: Jérôme Benoit Date: Mon, 13 May 2024 15:49:10 +0000 (+0200) Subject: refactor: cleanup benchmarking code X-Git-Tag: v4.0.7~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0b35a7a91cf79420f991141cf0a2a45aaaa20a08;p=poolifier.git refactor: cleanup benchmarking code Signed-off-by: Jérôme Benoit --- diff --git a/.vscode/launch.json b/.vscode/launch.json index f3ee906a..c750ba52 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,16 +14,6 @@ "skipFiles": ["/**"], "stopOnEntry": true }, - { - "type": "node", - "request": "launch", - "name": "Launch Benchmark.js Benchmark Debug", - "cwd": "${workspaceFolder}", - "runtimeExecutable": "pnpm", - "runtimeArgs": ["run", "benchmark:benchmark.js:debug"], - "skipFiles": ["/**"], - "stopOnEntry": true - }, { "type": "node", "request": "launch", diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 0e3ee055..3f467f9e 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -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()