Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Ubuntu
Desktop
5 months ago
Test name Executions per second
Using the spread operator 3915165.0 Ops/sec
Using Object.assign 6690822.0 Ops/sec
Using For-In loop 12289244.0 Ops/sec
Using For-In loop with hasOwnProperty 7793701.5 Ops/sec
Tests:
  • Using the spread operator

  • Using Object.assign

  • Using For-In loop

  • Using For-In loop with hasOwnProperty


;