Script Preparation code:
Tests:

Historical Performance Data aggregated from 49 community runs

Desktop Results:
Chrome 42 runs
Direct Assignment
916/s
Object.assign
199/s

Fastest: Direct Assignment (4.6x faster)

View exact numbers
  • Direct Assignment: 916 ops/sec
  • Object.assign: 199 ops/sec
Firefox 7 runs
Direct Assignment
1K/s
Object.assign
629/s

Fastest: Direct Assignment (1.8x faster)

View exact numbers
  • Direct Assignment: 1,150 ops/sec
  • Object.assign: 629 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
    Direct Assignment
    Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Mac OS X 10.15
View result in a separate tab
Direct Assignment
2K/s
Object.assign
926/s
View exact numbers
Test name Executions per second
Direct Assignment 1,511 Ops/sec
Object.assign 926 Ops/sec