HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
Array.prototype.map
7.6M/s
Immer.produce
835K/s

Fastest: Array.prototype.map (9.1x faster)

View exact numbers
  • Array.prototype.map: 7,627,210 ops/sec
  • Immer.produce: 835,222 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
    Array.prototype.map
    Immer.produce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Mac OS X 10.15.7
View result in a separate tab
Array.prototype.map
25.9M/s
Immer.produce
1.4M/s
View exact numbers
Test name Executions per second
Array.prototype.map 25,931,664 Ops/sec
Immer.produce 1,420,285 Ops/sec