Tests:
-
Native JS map and sort
-
lodash sortby(native map)
-
lodash chain map, and sortBy
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125 on Windows
View result in a separate tab
lodash chain map, and sortBy
3.6M/s
Native JS map and sort
1/s
lodash sortby(native map)
1/s
View exact numbers
| Test name |
Executions per second |
|
✓
lodash chain map, and sortBy
|
3,647,432 Ops/sec |
|
Native JS map and sort
|
1 Ops/sec |
|
lodash sortby(native map)
|
1 Ops/sec |
Do you really want to delete benchmark?