Skip to content

Commit 85eb1bc

Browse files
lucaslagoMylesBorins
authored andcommitted
benchmark: remove v8ForceOptimization calls
This removes common.v8ForceOptimization calls from url and vm benchmark files. PR-URL: #11908 Fixes: #11895 Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 114f9d6 commit 85eb1bc

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

benchmark/url/whatwg-url-idna.js

-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ function main(conf) {
3737
const input = inputs[conf.input][to];
3838
const method = to === 'ascii' ? domainToASCII : domainToUnicode;
3939

40-
common.v8ForceOptimization(method, input);
41-
4240
bench.start();
4341
for (var i = 0; i < n; i++) {
4442
method(input);

benchmark/vm/run-in-context.js

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ function main(conf) {
2323

2424
const contextifiedSandbox = vm.createContext();
2525

26-
common.v8ForceOptimization(vm.runInContext,
27-
'0', contextifiedSandbox, options);
2826
bench.start();
2927
for (; i < n; i++)
3028
vm.runInContext('0', contextifiedSandbox, options);

benchmark/vm/run-in-this-context.js

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ function main(conf) {
2121

2222
var i = 0;
2323

24-
common.v8ForceOptimization(vm.runInThisContext, '0', options);
2524
bench.start();
2625
for (; i < n; i++)
2726
vm.runInThisContext('0', options);

0 commit comments

Comments
 (0)