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 <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rafael Gonzaga 2025-08-25 10:35:26 -03:00 committed by GitHub
parent 6722642e3d
commit 8eeb8fcc00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,8 +4,8 @@ const common = require('../common.js');
const v8 = require('v8'); const v8 = require('v8');
const bench = common.createBenchmark(main, { const bench = common.createBenchmark(main, {
len: [256, 1024 * 16, 1024 * 512], len: [256, 1024 * 16],
n: [1e6], n: [1e5],
}); });
function main({ n, len }) { function main({ n, len }) {