mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
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:
1 parent
f513ec7e7c
commit
a4231cfc6b
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user