Skip to content

Commit

Permalink
benchmark: update iterations in benchmark/perf_hooks
Browse files Browse the repository at this point in the history
Fixes: #50571
PR-URL: #50869
Refs: #50571
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
lucshi authored and RafaelGSS committed Dec 15, 2023
1 parent cd891b3 commit 1bbdbdf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmark/perf_hooks/performance-observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function randomFn() {
}

const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
pending: [1, 10],
}, {
options: ['--expose-internals'],
Expand Down
2 changes: 1 addition & 1 deletion benchmark/perf_hooks/resourcetiming.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function createTimingInfo({
}

const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
observe: ['resource'],
});

Expand Down
2 changes: 1 addition & 1 deletion benchmark/perf_hooks/timerfied.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function randomFn() {
}

const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
observe: ['function'],
});

Expand Down
2 changes: 1 addition & 1 deletion benchmark/perf_hooks/usertiming.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {
} = require('perf_hooks');

const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
observe: ['all', 'measure'],
});

Expand Down

0 comments on commit 1bbdbdf

Please sign in to comment.