Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Chrome 88
Mac OS X 11.2.0
Desktop
3 years ago
Test name Executions per second
loose equals undefined 4092863.0 Ops/sec
loose not-equals undefined 4540506.5 Ops/sec
strict equals undefined 4476512.5 Ops/sec
strict not-equals undefined 4419200.0 Ops/sec
loose equals null 14104514.0 Ops/sec
loose not-equals null 14046252.0 Ops/sec
strict equals null 14094024.0 Ops/sec
strict not-equals null 13980406.0 Ops/sec
typeof 12168670.0 Ops/sec
in 13355762.0 Ops/sec
hasOwnProperty 12488008.0 Ops/sec
bool 14078613.0 Ops/sec
Script Preparation code:
Tests:
  • loose equals undefined

  • loose not-equals undefined

  • strict equals undefined

  • strict not-equals undefined

  • loose equals null

  • loose not-equals null

  • strict equals null

  • strict not-equals null

  • typeof

  • in

  • hasOwnProperty

  • bool