Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.76
Chrome 118
Windows
Desktop
one year ago
Test name Executions per second
JSON.stringify 1151789.0 Ops/sec
slice 11266568.0 Ops/sec
Array from 6359944.0 Ops/sec
Spread 10802854.0 Ops/sec
structuredClone 512428.7 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify

  • slice

  • Array from

  • Spread

  • structuredClone