From 8eeb8fcc00e5d6373378d1ffe0093e570f162fb0 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Mon, 25 Aug 2025 10:35:26 -0300 Subject: [PATCH] benchmark: calibrate config v8/serialize.js According to recent tests with `calibrate-n` on a dedicated Hetzner machine (4vCPUs | 16gb) the results got stable with n=1e5. The work on https://github.com/nodejs/performance/issues/186#issue-3326002531 has shown this benchmark file spends 2-minutes for a single run. This should improve things a bit. PR-URL: https://github.com/nodejs/node/pull/59586 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- benchmark/v8/serialize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/v8/serialize.js b/benchmark/v8/serialize.js index c370da49ea..1b9a240bd4 100644 --- a/benchmark/v8/serialize.js +++ b/benchmark/v8/serialize.js @@ -4,8 +4,8 @@ const common = require('../common.js'); const v8 = require('v8'); const bench = common.createBenchmark(main, { - len: [256, 1024 * 16, 1024 * 512], - n: [1e6], + len: [256, 1024 * 16], + n: [1e5], }); function main({ n, len }) {