Run details:
Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36
Chrome Mobile 114
Android
Mobile
one year ago
Test name Executions per second
typeof x === "undefined" 8438816.0 Ops/sec
x === undefined 2897786.5 Ops/sec
x == undefined 2865351.0 Ops/sec
x == null 8453250.0 Ops/sec
!x 8465516.0 Ops/sec
Script Preparation code:
Tests:
  • typeof x === "undefined"

  • x === undefined

  • x == undefined

  • x == null

  • !x