Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash get vs native javascript
(version: 0)
Comparing performance of:
lodash get vs CloneDeep
Created:
5 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/immer@3.1.3/dist/immer.umd.min.js"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
state = { data: { data1: { data2: 'test' } } };
Tests:
lodash get
const result = _.get(state, ['data', 'data1', 'data2'])
CloneDeep
const result = state?.data?.data1?.data2
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash get
CloneDeep
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
es6 destructuring vs lodash _.get asjfoasijdfio
lodash.get vs optional chaining
Native Object.values().some() vs lodash _.some()
lodash.get vs optional chaining(babel) vs optional chaining(es2020) vs Without Optional chaining
lodash.get vs optional chaining 2
Comments
Confirm delete:
Do you really want to delete benchmark?