Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Ubuntu
Desktop
one year ago
Test name Executions per second
JSON.stringify 696215.1 Ops/sec
slice 25346534.0 Ops/sec
Array from 8486624.0 Ops/sec
Spread 20436888.0 Ops/sec
structuredClone 270453.0 Ops/sec
Script Preparation code:
Tests:
  • JSON.stringify

  • slice

  • Array from

  • Spread

  • structuredClone