Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Structured clone 26907.8 Ops/sec
Deep copy 93799.2 Ops/sec
JSON stringify + parse 60033.3 Ops/sec
Spread operator 598470.4 Ops/sec
Deep copy 2 68166.6 Ops/sec
Script Preparation code:
Tests:
  • Structured clone

  • Deep copy

  • JSON stringify + parse

  • Spread operator

  • Deep copy 2


;