Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.63
Chrome 88
Windows
Desktop
3 years ago
Test name Executions per second
loose equals undefined 3598028.0 Ops/sec
loose not-equals undefined 3614908.5 Ops/sec
strict equals undefined 3612268.2 Ops/sec
strict not-equals undefined 3619184.5 Ops/sec
loose equals null 12086224.0 Ops/sec
loose not-equals null 12105827.0 Ops/sec
strict equals null 12116461.0 Ops/sec
strict not-equals null 12087243.0 Ops/sec
typeof 12080818.0 Ops/sec
in 12047347.0 Ops/sec
hasOwnProperty 10964670.0 Ops/sec
bool 12066025.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