Skip to content

Commit a4231cf

Browse files
authored
benchmark: honor n in perf_hooks usertiming
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: #66746 Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent f513ec7 commit a4231cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎benchmark/perf_hooks/usertiming.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ function main({ n, observe }) {
2929

3030
bench.start();
3131
performance.mark('start');
32-
for (let i = 0; i < 1e5; i++)
32+
for (let i = 0; i < n; i++)
3333
test();
3434
}

0 commit comments

Comments
 (0)