Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Chrome 70
Windows
Desktop
6 years ago
Test name Executions per second
Angular copy 111298.0 Ops/sec
Angular copy depth 2 108324.1 Ops/sec
Lodash Clone 117673.2 Ops/sec
Lodash Deep Clone 45429.6 Ops/sec
To JSON and Back 54573.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Angular copy

  • Angular copy depth 2

  • Lodash Clone

  • Lodash Deep Clone

  • To JSON and Back