Permalink
Browse files

benchmark: remove forced optimization from util

This removes all instances of %OptimizeFunctionOnNextCall from util
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 c5958d2 commit ca86aa5323a36895a3aed917fc9a4a3509d3df9b
Showing with 0 additions and 7 deletions.
  1. +0 −7 benchmark/util/format.js
View
@@ -2,7 +2,6 @@
const util = require('util');
const common = require('../common');
const v8 = require('v8');
const types = [
'string',
'number',
@@ -29,12 +28,6 @@ function main(conf) {
const input = inputs[type];
v8.setFlagsFromString('--allow_natives_syntax');
util.format(input[0], input[1]);
eval('%OptimizeFunctionOnNextCall(util.format)');
util.format(input[0], input[1]);
bench.start();
for (var i = 0; i < n; i++) {
util.format(input[0], input[1]);

0 comments on commit ca86aa5

Please sign in to comment.