Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.15
Desktop
8 months ago
Test name Executions per second
JSON.stringify 1325265.5 Ops/sec
slice 30049044.0 Ops/sec
Array from 18334730.0 Ops/sec
Spread 30616954.0 Ops/sec
structuredClone 867183.6 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify

  • slice

  • Array from

  • Spread

  • structuredClone