Tests:
-
Using the spread operator
-
Using Object.assign
-
Babel
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
Chrome 126 on Mac OS X 10.15.7
View result in a separate tab
Using the spread operator
3.9M/s
Using Object.assign
3.1M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Using the spread operator
|
3,916,761 Ops/sec |
|
Using Object.assign
|
3,098,604 Ops/sec |
|
Babel
|
527,768 Ops/sec |
Do you really want to delete benchmark?