benchmark: remove forced optimization from tls
This removes all instances of %OptimizeFunctionOnNextCall from tls benchmarks PR-URL: https://github.com/nodejs/node/pull/9615 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
541119c6ee
commit
ea61ce518b
@ -12,8 +12,11 @@ function main(conf) {
|
||||
|
||||
var i = 0;
|
||||
var m = {};
|
||||
common.v8ForceOptimization(
|
||||
tls.convertNPNProtocols, ['ABC', 'XYZ123', 'FOO'], m);
|
||||
// First call dominates results
|
||||
if (n > 1) {
|
||||
tls.convertNPNProtocols(['ABC', 'XYZ123', 'FOO'], m);
|
||||
m = {};
|
||||
}
|
||||
bench.start();
|
||||
for (; i < n; i++) tls.convertNPNProtocols(['ABC', 'XYZ123', 'FOO'], m);
|
||||
bench.end(n);
|
||||
|
Loading…
x
Reference in New Issue
Block a user