From 1b4a34b607448e4dc1d9572f86ef48fbb37fa4bc Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Wed, 14 Oct 2026 20:58:22 -0300 Subject: [PATCH] benchmark: honor n in perf_hooks usertiming Signed-off-by: RafaelGSS --- benchmark/perf_hooks/usertiming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/perf_hooks/usertiming.js b/benchmark/perf_hooks/usertiming.js index 92017861d58c..eea968b7ff8d 100644 --- a/benchmark/perf_hooks/usertiming.js +++ b/benchmark/perf_hooks/usertiming.js @@ -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(); }