Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Windows
Desktop
11 months ago
Test name Executions per second
JSON.stringify 1080899.6 Ops/sec
slice 30507300.0 Ops/sec
Array from 17670570.0 Ops/sec
Spread 26350074.0 Ops/sec
structuredClone 676075.0 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify

  • slice

  • Array from

  • Spread

  • structuredClone