Test name | Executions per second |
---|---|
!var1 | 8161505.5 Ops/sec |
var1===undefined | 3139364.5 Ops/sec |
var1 || var1==="" || var1===0 | 2638535.8 Ops/sec |
!(1 in arguments) | 725452288.0 Ops/sec |
!arguments[1] | 734250240.0 Ops/sec |
!object["var"] | 8490036.0 Ops/sec |
!object[0] | 8337537.0 Ops/sec |
!arguments["string"] | 669589568.0 Ops/sec |