HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 58 community runs

Desktop Results:
Chrome 50 runs
immer.produce()
438K/s
structuredClone
150/s

Fastest: immer.produce() (2929.3x faster)

View exact numbers
  • immer.produce(): 438,383 ops/sec
  • structuredClone: 150 ops/sec
Firefox 8 runs
immer.produce()
465K/s
structuredClone
287/s

Fastest: immer.produce() (1620.2x faster)

View exact numbers
  • immer.produce(): 465,387 ops/sec
  • structuredClone: 287 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.produce()
    structuredClone

    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
immer.produce()
769K/s
structuredClone
460/s
View exact numbers
Test name Executions per second
immer.produce() 768,936 Ops/sec
structuredClone 460 Ops/sec