Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Linux
Desktop
one year ago
Test name Executions per second
JSON.stringify 607929.4 Ops/sec
slice 6255880.0 Ops/sec
Array from 3431548.2 Ops/sec
Spread 6064017.5 Ops/sec
structuredClone 337498.2 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify

  • slice

  • Array from

  • Spread

  • structuredClone