mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
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:
parent
6722642e3d
commit
8eeb8fcc00
|
|
@ -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 }) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user