diff options
author | Bartosz Sosnowski <bartosz@janeasystems.com> | 2017-03-01 12:48:05 +0100 |
---|---|---|
committer | Bartosz Sosnowski <bartosz@janeasystems.com> | 2017-03-06 16:32:05 +0100 |
commit | ca86aa5323a36895a3aed917fc9a4a3509d3df9b (patch) | |
tree | 2f629979d86b8374ffdd73fd22dc44473e1b20bc /benchmark | |
parent | c5958d20fdf5702247e790d7ebc87c7005dc11f0 (diff) | |
download | android-node-v8-ca86aa5323a36895a3aed917fc9a4a3509d3df9b.tar.gz android-node-v8-ca86aa5323a36895a3aed917fc9a4a3509d3df9b.tar.bz2 android-node-v8-ca86aa5323a36895a3aed917fc9a4a3509d3df9b.zip |
benchmark: remove forced optimization from util
This removes all instances of %OptimizeFunctionOnNextCall from util
benchmarks
PR-URL: https://github.com/nodejs/node/pull/9615
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/util/format.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/benchmark/util/format.js b/benchmark/util/format.js index 8040554ba0..82e25b4c4c 100644 --- a/benchmark/util/format.js +++ b/benchmark/util/format.js @@ -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]); |