HTML Preparation code:
AخA
 
1
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.js"></script>
Script Preparation code:
 
var person = {name: 'Frederick', lastName: 'Corcino Alejo'};
Tests:
  • Lodash Assing

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

     
    Object.assign({}, person);
  • spread

     
    a = {...person}
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Lodash Assing
    Native Assing
    spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Windows
View result in a separate tab
Test name Executions per second
Lodash Assing 3015881.0 Ops/sec
Native Assing 4937886.5 Ops/sec
spread 5084315.5 Ops/sec