Skip to content

Commit

Permalink
benchmark: increase iteration counts for 4 cases
Browse files Browse the repository at this point in the history
Increase the iteration counts to 10X to reflect real performance of
perf hooks timing.

Fixes: #50571
  • Loading branch information
Lei Shi committed Nov 23, 2023
1 parent ea88a3e commit 7d46622
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 7d46622

Please sign in to comment.