Script Preparation code:
Tests:

Historical Performance Data aggregated from 38 community runs

Desktop Results:
Chrome 32 runs
slice
7.6M/s
Spread
7.2M/s
Array from
4.3M/s
JSON.stringify
1.1M/s
structuredClone
485K/s

Fastest: slice (15.6x faster)

View exact numbers
  • slice: 7,551,829 ops/sec
  • Spread: 7,195,266 ops/sec
  • Array from: 4,275,250 ops/sec
  • JSON.stringify: 1,115,073 ops/sec
  • structuredClone: 484,653 ops/sec
Firefox 6 runs
slice
31.4M/s
Spread
28.5M/s
Array from
14.5M/s
JSON.stringify
1.2M/s
structuredClone
757K/s

Fastest: slice (41.4x faster)

View exact numbers
  • slice: 31,357,168 ops/sec
  • Spread: 28,483,514 ops/sec
  • Array from: 14,463,791 ops/sec
  • JSON.stringify: 1,203,082 ops/sec
  • structuredClone: 757,100 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
    JSON.stringify
    slice
    Array from
    Spread
    structuredClone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144 on Mac OS X 10.15.7
View result in a separate tab
slice
11.1M/s
Spread
10.7M/s
Array from
10.5M/s
JSON.stringify
2.0M/s
structuredClone
827K/s
View exact numbers
Test name Executions per second
slice 11,108,642 Ops/sec
Spread 10,714,845 Ops/sec
Array from 10,464,244 Ops/sec
JSON.stringify 2,007,316 Ops/sec
structuredClone 826,963 Ops/sec