mirror of https://github.com/nodejs/node.git
benchmark: remove v8ForceOptimization calls
This removes common.v8ForceOptimization calls from url and vm benchmark files. PR-URL: https://github.com/nodejs/node/pull/11908 Fixes: https://github.com/nodejs/node/issues/11895 Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
parent
5a71cb6d32
commit
3129ba2bae
|
@ -37,8 +37,6 @@ function main(conf) {
|
|||
const input = inputs[conf.input][to];
|
||||
const method = to === 'ascii' ? domainToASCII : domainToUnicode;
|
||||
|
||||
common.v8ForceOptimization(method, input);
|
||||
|
||||
bench.start();
|
||||
for (var i = 0; i < n; i++) {
|
||||
method(input);
|
||||
|
|
|
@ -23,8 +23,6 @@ function main(conf) {
|
|||
|
||||
const contextifiedSandbox = vm.createContext();
|
||||
|
||||
common.v8ForceOptimization(vm.runInContext,
|
||||
'0', contextifiedSandbox, options);
|
||||
bench.start();
|
||||
for (; i < n; i++)
|
||||
vm.runInContext('0', contextifiedSandbox, options);
|
||||
|
|
|
@ -21,7 +21,6 @@ function main(conf) {
|
|||
|
||||
var i = 0;
|
||||
|
||||
common.v8ForceOptimization(vm.runInThisContext, '0', options);
|
||||
bench.start();
|
||||
for (; i < n; i++)
|
||||
vm.runInThisContext('0', options);
|
||||
|
|
Loading…
Reference in New Issue