benchmark: honor n in perf_hooks usertiming

Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com>
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Rafael Gonzaga authored and GitHub committed 2026-10-17 00:53:36 +00:00
1 parent f513ec7e7c
commit a4231cfc6b
1 file changed
+1 -1
+1 -1
View File
@@ -29,6 +29,6 @@ function main({ n, observe }) {
bench.start();
performance.mark('start');
for (let i = 0; i < 1e5; i++)
for (let i = 0; i < n; i++)
test();
}