Skip to content

Commit 17c85ff

Browse files
committed
benchmark: remove forced optimization from crypto
This removes all instances of %OptimizeFunctionOnNextCall from crypto benchmarks PR-URL: #9615 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 05ac6e1 commit 17c85ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

benchmark/crypto/get-ciphers.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ function main(conf) {
1212
const v = conf.v;
1313
const method = require(v).getCiphers;
1414
var i = 0;
15-
16-
common.v8ForceOptimization(method);
15+
// first call to getChipers will dominate the results
16+
if (n > 1) {
17+
for (; i < n; i++)
18+
method();
19+
}
1720
bench.start();
1821
for (; i < n; i++) method();
1922
bench.end(n);

0 commit comments

Comments
 (0)