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>
This commit is contained in:
Bartosz Sosnowski 2017-02-28 18:44:14 +01:00
parent 05ac6e1b01
commit 17c85ffd80

View File

@ -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);