Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/misc/util-extend-vs-object-assign.js')
-rw-r--r--benchmark/misc/util-extend-vs-object-assign.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/benchmark/misc/util-extend-vs-object-assign.js b/benchmark/misc/util-extend-vs-object-assign.js
index caea42ce914..41c15d7d2ca 100644
--- a/benchmark/misc/util-extend-vs-object-assign.js
+++ b/benchmark/misc/util-extend-vs-object-assign.js
@@ -2,7 +2,6 @@
const common = require('../common.js');
const util = require('util');
-const v8 = require('v8');
const bench = common.createBenchmark(main, {
type: ['extend', 'assign'],
@@ -12,15 +11,11 @@ const bench = common.createBenchmark(main, {
function main(conf) {
let fn;
const n = conf.n | 0;
- let v8command;
if (conf.type === 'extend') {
fn = util._extend;
- v8command = '%OptimizeFunctionOnNextCall(util._extend)';
} else if (conf.type === 'assign') {
fn = Object.assign;
- // Object.assign is built-in, cannot be optimized
- v8command = '';
}
// Force-optimize the method to test so that the benchmark doesn't
@@ -28,9 +23,6 @@ function main(conf) {
for (var i = 0; i < conf.type.length * 10; i += 1)
fn({}, process.env);
- v8.setFlagsFromString('--allow_natives_syntax');
- eval(v8command);
-
var obj = new Proxy({}, { set: function(a, b, c) { return true; } });
bench.start();