Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36
Chrome 58
Windows
Other
7 years ago
Test name Executions per second
_.cloneDeep(mockObject); 115250.0 Ops/sec
jQuery.extend(true, {}, mockObject); 123312.1 Ops/sec
_.extend({}, mockObject); 1027216.1 Ops/sec
jQuery.extend({}, mockObject); 1169620.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.cloneDeep(mockObject);

  • jQuery.extend(true, {}, mockObject);

  • _.extend({}, mockObject);

  • jQuery.extend({}, mockObject);


;