summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benchmark/crypto/get-ciphers.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/benchmark/crypto/get-ciphers.js b/benchmark/crypto/get-ciphers.js
index 257c9af2fd..f6b1767cb4 100644
--- a/benchmark/crypto/get-ciphers.js
+++ b/benchmark/crypto/get-ciphers.js
@@ -12,8 +12,11 @@ function main(conf) {
const v = conf.v;
const method = require(v).getCiphers;
var i = 0;
-
- common.v8ForceOptimization(method);
+ // first call to getChipers will dominate the results
+ if (n > 1) {
+ for (; i < n; i++)
+ method();
+ }
bench.start();
for (; i < n; i++) method();
bench.end(n);