diff options
author | Bartosz Sosnowski <bartosz@janeasystems.com> | 2017-02-28 18:44:14 +0100 |
---|---|---|
committer | Bartosz Sosnowski <bartosz@janeasystems.com> | 2017-03-06 16:31:57 +0100 |
commit | 17c85ffd80a00289479a7355802cd264935e72d4 (patch) | |
tree | 5e018631c41af83d969ac6ea209dd7890f60d508 /benchmark | |
parent | 05ac6e1b013be47168e17eee0c9ac9bcc21f560f (diff) | |
download | android-node-v8-17c85ffd80a00289479a7355802cd264935e72d4.tar.gz android-node-v8-17c85ffd80a00289479a7355802cd264935e72d4.tar.bz2 android-node-v8-17c85ffd80a00289479a7355802cd264935e72d4.zip |
benchmark: remove forced optimization from crypto
This removes all instances of %OptimizeFunctionOnNextCall from crypto
benchmarks
PR-URL: https://github.com/nodejs/node/pull/9615
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/crypto/get-ciphers.js | 7 |
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); |