HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 19 community runs

Desktop Results:
Chrome 19 runs
Shallow copy
1K/s
Object.assign
65/s
immer
22/s
Immutable
9/s

Fastest: Shallow copy (161.7x faster)

View exact numbers
  • Shallow copy: 1,454 ops/sec
  • Object.assign: 65 ops/sec
  • immer: 22 ops/sec
  • Immutable: 9 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
    immer
    Immutable
    Shallow copy
    Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Windows
View result in a separate tab
Shallow copy
2K/s
Object.assign
71/s
immer
23/s
Immutable
8/s
View exact numbers
Test name Executions per second
Shallow copy 2,056 Ops/sec
Object.assign 71 Ops/sec
immer 23 Ops/sec
Immutable 8 Ops/sec