Skip to content

Commit

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

PR-URL: #9615
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
  • Loading branch information
bzoz committed Mar 6, 2017
1 parent 541119c commit ea61ce5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions benchmark/tls/convertprotocols.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ea61ce5

Please sign in to comment.