Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
7 months ago
Test name Executions per second
JSON.stringify 1660189.9 Ops/sec
slice 12719731.0 Ops/sec
Array from 7532841.5 Ops/sec
Spread 11159811.0 Ops/sec
structuredClone 666136.6 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify

  • slice

  • Array from

  • Spread

  • structuredClone