Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/122.0.6261.62 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 122
iOS 16.7
Mobile
9 months ago
Test name Executions per second
Using the spread operator 9263728.0 Ops/sec
Using Object.assign 3761126.0 Ops/sec
Using For-In loop 20671616.0 Ops/sec
Using For-In loop with hasOwnProperty 2368874.0 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using For-In loop

  • Using For-In loop with hasOwnProperty


;