0
0
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:
Bartosz Sosnowski 2017-03-09 22:01:45 +01:00
parent 5efb15e30a
commit 6df23fa39f
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}