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 9372692.0 Ops/sec
trueFunc 9449807.0 Ops/sec
undefinedFunc 3267820.8 Ops/sec
nullFunc 9602892.0 Ops/sec
notDefinedFunc 4958745.0 Ops/sec
definedFunc 3738493.2 Ops/sec
staticFunc 9808226.0 Ops/sec
localUndefinedFunc 9890711.0 Ops/sec
Script Preparation code:
Tests:
  • emptyFunc

  • trueFunc

  • undefinedFunc

  • nullFunc

  • notDefinedFunc

  • definedFunc

  • staticFunc

  • localUndefinedFunc