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/buffers/buffer-swap.js')
-rw-r--r--benchmark/buffers/buffer-swap.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/benchmark/buffers/buffer-swap.js b/benchmark/buffers/buffer-swap.js
index c6d7db470bc..71e08890910 100644
--- a/benchmark/buffers/buffer-swap.js
+++ b/benchmark/buffers/buffer-swap.js
@@ -1,7 +1,6 @@
'use strict';
const common = require('../common.js');
-const v8 = require('v8');
const bench = common.createBenchmark(main, {
aligned: ['true', 'false'],
@@ -81,9 +80,7 @@ function main(conf) {
const buf = createBuffer(len, aligned === 'true');
const bufferSwap = genMethod(method);
- v8.setFlagsFromString('--allow_natives_syntax');
- eval('%OptimizeFunctionOnNextCall(bufferSwap)');
-
+ bufferSwap(n, buf);
bench.start();
bufferSwap(n, buf);
bench.end(n);