Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.75 Safari/537.36
Chrome 68
Windows 7
Desktop
2 years ago
Test name Executions per second
!var1 7675466.5 Ops/sec
var1===undefined 2251747.5 Ops/sec
var1 || var1==="" || var1===0 2511442.2 Ops/sec
!(1 in arguments) 59094404.0 Ops/sec
Script Preparation code:
Tests:
  • !var1

  • var1===undefined

  • var1 || var1==="" || var1===0

  • !(1 in arguments)

  • !arguments[1]

  • !object["var"]

  • !object[0]

  • !arguments["string"]


;