Skip to content

Commit

Permalink
benchmark: fix punycode and get-ciphers benchmark
Browse files Browse the repository at this point in the history
Add missing 'i=0' from for-loops from punycode and get-ciphers
benchmarks.

PR-URL: #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>
  • Loading branch information
bzoz committed Mar 9, 2017
1 parent 5efb15e commit 6df23fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/crypto/get-ciphers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion benchmark/misc/punycode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6df23fa

Please sign in to comment.