Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36
Chrome 53
Mac OS X 10.12.0
Other
8 years ago
Test name Executions per second
emptyFunc 10841400.0 Ops/sec
trueFunc 10722474.0 Ops/sec
undefinedFunc 3680793.8 Ops/sec
nullFunc 10700489.0 Ops/sec
notDefinedFunc 5760560.5 Ops/sec
definedFunc 4178719.8 Ops/sec
staticFunc 10651853.0 Ops/sec
localUndefinedFunc 10714090.0 Ops/sec
Script Preparation code:
Tests:
  • emptyFunc

  • trueFunc

  • undefinedFunc

  • nullFunc

  • notDefinedFunc

  • definedFunc

  • staticFunc

  • localUndefinedFunc