Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
9 months ago
Test name Executions per second
window.structuredClone 289001.7 Ops/sec
Spread syntax 15099320.0 Ops/sec
Object assign 3037711.0 Ops/sec
babyClone 375198.8 Ops/sec
Script Preparation code:
Tests:
  • window.structuredClone

  • Spread syntax

  • Object assign

  • babyClone


;