HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/lodash/4.16.0/lodash.min.js"></script>
Script Preparation code:
 
var person = {name: {first: 'Johnson', last: 'Wang' }, lastName: 'Corcino Alejo'};
Tests:
  • lodash

     
    _.get(person, 'name.last');
  • native

     
    person.name.last
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash
    native

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36
Chrome 98 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
lodash 3213962.2 Ops/sec
native 16465151.0 Ops/sec