Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.53 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 96
iOS 14.8
Mobile
2 years ago
Test name Executions per second
Using the spread operator 11655588.0 Ops/sec
Using Object.assign 5411970.5 Ops/sec
Using For-In loop 12265183.0 Ops/sec
Using For-In loop with hasOwnProperty 3900992.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using For-In loop

  • Using For-In loop with hasOwnProperty


;