Tests:
-
Array.flat
-
reduce + concat
-
reduce + destructure
-
reduce + push
-
lodash.flatten
-
destructuring
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
9 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Chrome 141 on Windows
View result in a separate tab
reduce + destructure
5.5M/s
View exact numbers
| Test name |
Executions per second |
|
✓
destructuring
|
19,955,840 Ops/sec |
|
reduce + push
|
10,491,881 Ops/sec |
|
lodash.flatten
|
9,241,829 Ops/sec |
|
reduce + destructure
|
5,539,773 Ops/sec |
|
Array.flat
|
3,518,919 Ops/sec |
|
reduce + concat
|
1,855,202 Ops/sec |
Do you really want to delete benchmark?