From 3be28720d3622d4d0d136ddaa78df740ef0869e3 Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Mon, 6 Mar 2017 18:53:17 +0100 Subject: [PATCH] benchmark: fix punycode and get-ciphers benchmark Add missing 'i=0' from for-loops from punycode and get-ciphers benchmarks. --- benchmark/crypto/get-ciphers.js | 2 +- benchmark/misc/punycode.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/crypto/get-ciphers.js b/benchmark/crypto/get-ciphers.js index f6b1767cb4fbcc..3f5ad17ad38716 100644 --- a/benchmark/crypto/get-ciphers.js +++ b/benchmark/crypto/get-ciphers.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); } diff --git a/benchmark/misc/punycode.js b/benchmark/misc/punycode.js index b359fbbff4bbc6..74ddadbb9daa6c 100644 --- a/benchmark/misc/punycode.js +++ b/benchmark/misc/punycode.js @@ -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); }