Skip to content

Commit 0fa22cb

Browse files
RafaelGSStargos
authored andcommitted
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 nodejs/performance#186 (comment) has shown this benchmark file spends 2-minutes for a single run. This should improve things a bit. PR-URL: #59586 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 352d635 commit 0fa22cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/v8/serialize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const common = require('../common.js');
44
const v8 = require('v8');
55

66
const bench = common.createBenchmark(main, {
7-
len: [256, 1024 * 16, 1024 * 512],
8-
n: [1e6],
7+
len: [256, 1024 * 16],
8+
n: [1e5],
99
});
1010

1111
function main({ n, len }) {

0 commit comments

Comments
 (0)