Script Preparation code:
Tests:

Historical Performance Data aggregated from 7 community runs

Desktop Results:
Chrome 7 runs
Manualy
816/s
swc
765/s
Using Object.assign
582/s
Using the spread operator
581/s
json
262/s

Fastest: Manualy (3.1x faster)

View exact numbers
  • Manualy: 816 ops/sec
  • swc: 765 ops/sec
  • Using Object.assign: 582 ops/sec
  • Using the spread operator: 581 ops/sec
  • json: 262 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
    swc
    Manualy
    json
    set
    keys

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36
Chrome 148 on Mac OS X 10.15.7
View result in a separate tab
keys
4K/s
set
2K/s
Manualy
1K/s
swc
1K/s
Using the spread operator
973/s
Using Object.assign
953/s
json
491/s
View exact numbers
Test name Executions per second
keys 3,532 Ops/sec
set 2,097 Ops/sec
Manualy 1,423 Ops/sec
swc 1,325 Ops/sec
Using the spread operator 973 Ops/sec
Using Object.assign 953 Ops/sec
json 491 Ops/sec