Skip to content

Commit ca86aa5

Browse files
committed
benchmark: remove forced optimization from util
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>
1 parent c5958d2 commit ca86aa5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

benchmark/util/format.js

-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const util = require('util');
44
const common = require('../common');
5-
const v8 = require('v8');
65
const types = [
76
'string',
87
'number',
@@ -29,12 +28,6 @@ function main(conf) {
2928

3029
const input = inputs[type];
3130

32-
v8.setFlagsFromString('--allow_natives_syntax');
33-
34-
util.format(input[0], input[1]);
35-
eval('%OptimizeFunctionOnNextCall(util.format)');
36-
util.format(input[0], input[1]);
37-
3831
bench.start();
3932
for (var i = 0; i < n; i++) {
4033
util.format(input[0], input[1]);

0 commit comments

Comments
 (0)