Skip to content

Commit

Permalink
benchmark: remove forced optimization from crypto
Browse files Browse the repository at this point in the history
This removes all instances of %OptimizeFunctionOnNextCall from crypto
benchmarks

PR-URL: #9615
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information
bzoz committed Mar 6, 2017
1 parent 05ac6e1 commit 17c85ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions benchmark/crypto/get-ciphers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 17c85ff

Please sign in to comment.