Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
2 months ago
Test name Executions per second
Lodash Assing 2451438.2 Ops/sec
Native Assing 4137775.5 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});