Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134
Linux
Desktop
3 months ago
Test name Executions per second
Using Object.assign 12976.6 Ops/sec
Using the spread operator 12422.2 Ops/sec
Using Object.assign (known change) 13418.2 Ops/sec
Using the spread operator (known change) 12944.2 Ops/sec
Using Object.assign (filtered) 13112.8 Ops/sec
Using the spread operator (filter) 12630.6 Ops/sec
Tests:
  • Using Object.assign

  • Using the spread operator

  • Using Object.assign (known change)

  • Using the spread operator (known change)

  • Using Object.assign (filtered)

  • Using the spread operator (filter)