summaryrefslogtreecommitdiff
path: root/benchmark/path/dirname-win32.js
diff options
context:
space:
mode:
authorBartosz Sosnowski <bartosz@janeasystems.com>2017-03-01 12:37:12 +0100
committerBartosz Sosnowski <bartosz@janeasystems.com>2017-03-06 16:32:00 +0100
commiteba2c62bb10fb65785050600212f70d38f1ffba3 (patch)
tree4b62a81323aa41d9bafe32688cf2bc94279f6243 /benchmark/path/dirname-win32.js
parent7587a11adc5013721aae3e0bedb7fbd51e1ced5b (diff)
downloadnode-new-eba2c62bb10fb65785050600212f70d38f1ffba3.tar.gz
benchmark: remove forced optimization from path
This removes all instances of %OptimizeFunctionOnNextCall from path 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/path/dirname-win32.js')
-rw-r--r--benchmark/path/dirname-win32.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/benchmark/path/dirname-win32.js b/benchmark/path/dirname-win32.js
index 5cb0829437..01d97d08e2 100644
--- a/benchmark/path/dirname-win32.js
+++ b/benchmark/path/dirname-win32.js
@@ -1,7 +1,6 @@
'use strict';
var common = require('../common.js');
var path = require('path');
-var v8 = require('v8');
var bench = common.createBenchmark(main, {
path: [
@@ -21,12 +20,6 @@ function main(conf) {
var p = path.win32;
var input = '' + conf.path;
- // Force optimization before starting the benchmark
- p.dirname(input);
- v8.setFlagsFromString('--allow_natives_syntax');
- eval('%OptimizeFunctionOnNextCall(p.dirname)');
- p.dirname(input);
-
bench.start();
for (var i = 0; i < n; i++) {
p.dirname(input);