mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
benchmark: fix punycode and get-ciphers benchmark
Add missing 'i=0' from for-loops from punycode and get-ciphers benchmarks. PR-URL: https://github.com/nodejs/node/pull/11720 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
5efb15e30a
commit
6df23fa39f
@ -18,6 +18,6 @@ function main(conf) {
|
||||
method();
|
||||
}
|
||||
bench.start();
|
||||
for (; i < n; i++) method();
|
||||
for (i = 0; i < n; i++) method();
|
||||
bench.end(n);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ function runPunycode(n, val) {
|
||||
for (; i < n; i++)
|
||||
usingPunycode(val);
|
||||
bench.start();
|
||||
for (; i < n; i++)
|
||||
for (i = 0; i < n; i++)
|
||||
usingPunycode(val);
|
||||
bench.end(n);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user