HTML Preparation code:
Script Preparation code:
Tests:
  • _.cloneDeep(mockObject);

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

  • _.extend({}, mockObject);

  • jQuery.extend({}, mockObject);

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    _.cloneDeep(mockObject);
    jQuery.extend(true, {}, mockObject);
    _.extend({}, mockObject);
    jQuery.extend({}, mockObject);

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
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 on Windows
View result in a separate tab
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


;