Script Preparation code:
x
 
var notDefined;
var defined = 1;
var emptyFunc = function() {};
var trueFunc = function() { return true; }
var undefinedFunc = function() { return undefined; }
var nullFunc = function() { return null; }
var notDefinedFunc = function() { return notDefined; }
var definedFunc = function() { return defined; }
var staticFunc = function() { return 1; }
var localUndefinedFunc = (function() {
  var notDefinedAgain;
  
  return function() {
    return notDefinedAgain;
  }
})();
Tests:
  • localUndefinedFunc

     
    localUndefinedFunc();
  • wrapped localUndefinedFunc

     
    (localUndefinedFunc());
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    localUndefinedFunc
    wrapped localUndefinedFunc

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53 on Windows 7
View result in a separate tab
Test name Executions per second
localUndefinedFunc 9397231.0 Ops/sec
wrapped localUndefinedFunc 9252704.0 Ops/sec