Tests:
-
Empty array - Length
-
Empty array - lodash
-
String array - length
-
String array - lodash
-
Obj array - length
-
Obj array - lodash
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
Empty array - Length
13.1M/s
String array - length
13.0M/s
Obj array - length
12.9M/s
String array - lodash
6.7M/s
Empty array - lodash
6.6M/s
Obj array - lodash
6.5M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Empty array - Length
|
13,095,935 Ops/sec |
|
String array - length
|
12,975,452 Ops/sec |
|
Obj array - length
|
12,914,404 Ops/sec |
|
String array - lodash
|
6,684,103 Ops/sec |
|
Empty array - lodash
|
6,554,954 Ops/sec |
|
Obj array - lodash
|
6,541,496 Ops/sec |
Do you really want to delete benchmark?