Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Windows
Desktop
2 years ago
Test name Executions per second
Lodash Assing 2621813.8 Ops/sec
Native Assing 6425692.0 Ops/sec
HTML Preparation code:
AخA
 
1
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.js"></script>
Script Preparation code:
 
var person = {name: 'Frederick', lastName: 'Corcino Alejo'};
Tests:
  • Lodash Assing

     
    _.assign({}, person, {age: 15});
  • Native Assing

     
    Object.assign({}, person, {age: 15});