Permalink
Browse files

benchmark: fix punycode and get-ciphers benchmark

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 6df23fa39f0400a6d5e60cc5bbf9e4d18987bb9b
Showing with 2 additions and 2 deletions.
  1. +1 −1 benchmark/crypto/get-ciphers.js
  2. +1 −1 benchmark/misc/punycode.js
@@ -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);
}

0 comments on commit 6df23fa

Please sign in to comment.