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

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

     
    var a = { a: 'oh', b: 'my' };
    var b = { c: 'goddess' };
    var c = Object.assign(a, b);
  • lodash 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
    lodash merge
    object.assign
    lodash assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Linux; Android 9; G8342) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Chrome Mobile 73 on Android
View result in a separate tab
Test name Executions per second
lodash merge 934179.4 Ops/sec
object.assign 2120522.2 Ops/sec
lodash assign 1177041.0 Ops/sec