Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
Manual copy
94.3M/s
Using the spread operator
18.5M/s
Using Object.assign
8.3M/s

Fastest: Manual copy (11.3x faster)

View exact numbers
  • Manual copy: 94,312,768 ops/sec
  • Using the spread operator: 18,482,314 ops/sec
  • Using Object.assign: 8,343,180 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using the spread operator
    Using Object.assign
    Manual copy

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0
Firefox 149 on Windows
View result in a separate tab
Manual copy
781.8M/s
Using Object.assign
7.2M/s
Using the spread operator
3.3M/s
View exact numbers
Test name Executions per second
Manual copy 781,814,912 Ops/sec
Using Object.assign 7,186,858 Ops/sec
Using the spread operator 3,283,393 Ops/sec