Permalink
Browse files

benchmark: remove forced optimization from es

This removes all instances of %OptimizeFunctionOnNextCall from es
benchmarks

PR-URL: #9615
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information...
bzoz committed Feb 28, 2017
1 parent 17c85ff commit ef8cc301fed5f0b4b3107fae5d896eb27f9519f8
Showing with 0 additions and 10 deletions.
  1. +0 −4 benchmark/es/defaultparams-bench.js
  2. +0 −6 benchmark/es/restparams-bench.js
@@ -22,8 +22,6 @@ function defaultParams(x = 1, y = 2) {
function runOldStyleDefaults(n) {
common.v8ForceOptimization(oldStyleDefaults);
var i = 0;
bench.start();
for (; i < n; i++)
@@ -33,8 +31,6 @@ function runOldStyleDefaults(n) {
function runDefaultParams(n) {
common.v8ForceOptimization(defaultParams);
var i = 0;
bench.start();
for (; i < n; i++)
@@ -35,8 +35,6 @@ function useArguments() {
function runCopyArguments(n) {
common.v8ForceOptimization(copyArguments, 1, 2, 'a', 'b');
var i = 0;
bench.start();
for (; i < n; i++)
@@ -46,8 +44,6 @@ function runCopyArguments(n) {
function runRestArguments(n) {
common.v8ForceOptimization(restArguments, 1, 2, 'a', 'b');
var i = 0;
bench.start();
for (; i < n; i++)
@@ -57,8 +53,6 @@ function runRestArguments(n) {
function runUseArguments(n) {
common.v8ForceOptimization(useArguments, 1, 2, 'a', 'b');
var i = 0;
bench.start();
for (; i < n; i++)

0 comments on commit ef8cc30

Please sign in to comment.