Test case name | Result |
---|---|
== null | |
=== null || === undefined | |
== null (via util func) | |
=== null || === undefined (via util func) | |
=== null || === undefined || === "" | |
=== null || === undefined || === "" (via utility func) | |
== null with complex object or array only | |
== null with complex object or array only (via utility func) |
Test name | Executions per second |
---|---|
== null | 1649292.1 Ops/sec |
=== null || === undefined | 582183.1 Ops/sec |
== null (via util func) | 949545.0 Ops/sec |
=== null || === undefined (via util func) | 563454.2 Ops/sec |
=== null || === undefined || === "" | 489681.3 Ops/sec |
=== null || === undefined || === "" (via utility func) | 564379.1 Ops/sec |
== null with complex object or array only | 2256045.2 Ops/sec |
== null with complex object or array only (via utility func) | 564580.2 Ops/sec |