Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Chrome 69
Mac OS X 10.12.6
Desktop
6 years ago
Test name Executions per second
Angular copy 171536.0 Ops/sec
Angular copy depth 2 163641.8 Ops/sec
Lodash Clone 184167.5 Ops/sec
Lodash Deep Clone 74146.5 Ops/sec
To JSON and Back 80534.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Angular copy

  • Angular copy depth 2

  • Lodash Clone

  • Lodash Deep Clone

  • To JSON and Back