Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Lodash get 4673139.5 Ops/sec
Native 734800960.0 Ops/sec
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: { something: { else: 'Frederick' } }, lastName: 'Corcino Alejo'};
Tests:
  • Lodash get

     
    _.get(person, 'name.something.else');
  • Native

     
    person.name.something.else