Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 YaBrowser/19.5.2.38.10 YaApp_iOS/70.00 YaApp_iOS_Browser/70.00 Safari/604.1 SA/3
Yandex Browser 19
iOS 14.6
Mobile
3 years ago
Test name Executions per second
Using the spread operator 12496242.0 Ops/sec
Using Object.assign 6919200.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign