HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Tests:
  • MERGE

     
    var a = { a: 'oh', b: 'my' };
    var b = { c: 'goddess' };
    var c = _.merge(a, b);
  • ASSIGN

     
    var a = { a: 'oh', b: 'my' };
    var b = { c: 'goddess' };
    var c = _.assign(a, b);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    MERGE
    ASSIGN

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Chrome 70 on Linux
View result in a separate tab
Test name Executions per second
MERGE 1985839.8 Ops/sec
ASSIGN 2771342.5 Ops/sec