Test case name | Result |
---|---|
isEmpty empty array | |
.length empty array | |
isEmpty string array | |
.length string array | |
isEmpty object array | |
.length object array |
Test name | Executions per second |
---|---|
isEmpty empty array | 2596185.0 Ops/sec |
.length empty array | 3803149.0 Ops/sec |
isEmpty string array | 2721065.5 Ops/sec |
.length string array | 4813648.0 Ops/sec |
isEmpty object array | 2782270.8 Ops/sec |
.length object array | 4759796.0 Ops/sec |