Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53
Windows 7
Other
8 years ago
Test name Executions per second
emptyFunc 9864936.0 Ops/sec
trueFunc 9834620.0 Ops/sec
undefinedFunc 3613130.8 Ops/sec
nullFunc 9885135.0 Ops/sec
notDefinedFunc 5270450.5 Ops/sec
definedFunc 5330411.0 Ops/sec
staticFunc 9832448.0 Ops/sec
localUndefinedFunc 9715743.0 Ops/sec
Script Preparation code:
Tests:
  • emptyFunc

  • trueFunc

  • undefinedFunc

  • nullFunc

  • notDefinedFunc

  • definedFunc

  • staticFunc

  • localUndefinedFunc