Permalink
Browse files

benchmark: remove forced optimization from tls

This removes all instances of %OptimizeFunctionOnNextCall from tls
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 1, 2017
1 parent 541119c commit ea61ce518bed2b8d807062d2f8828739ad6ee693
Showing with 5 additions and 2 deletions.
  1. +5 −2 benchmark/tls/convertprotocols.js
@@ -12,8 +12,11 @@ function main(conf) {
var i = 0;
var m = {};
common.v8ForceOptimization(
tls.convertNPNProtocols, ['ABC', 'XYZ123', 'FOO'], m);
// First call dominates results
if (n > 1) {
tls.convertNPNProtocols(['ABC', 'XYZ123', 'FOO'], m);
m = {};
}
bench.start();
for (; i < n; i++) tls.convertNPNProtocols(['ABC', 'XYZ123', 'FOO'], m);
bench.end(n);

0 comments on commit ea61ce5

Please sign in to comment.