HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
 
var a = {name: 'a',secondName: 'b', home: {city:'San Diego', zip:'92122',phone:{code:484, number:99999999}}}
Tests:
  • Lodash

     
    let b = _.cloneDeep(a)
  • Native JS

     
    let b = JSON.parse(JSON.stringify(a))
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Lodash
    Native JS

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Chrome 74 on Mac OS X 10.14.5
View result in a separate tab
Test name Executions per second
Lodash 407755.0 Ops/sec
Native JS 266364.7 Ops/sec