Skip to content

Commit

Permalink
benchmark: remove forced optimization from util
Browse files Browse the repository at this point in the history
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 6, 2017
1 parent c5958d2 commit ca86aa5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions benchmark/util/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const util = require('util');
const common = require('../common');
const v8 = require('v8');
const types = [
'string',
'number',
Expand All @@ -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]);
Expand Down

0 comments on commit ca86aa5

Please sign in to comment.