Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash.get vs Lodash.property vs native with ?
(version: 1)
Comparing performance of:
Lodash get vs _property vs native ?
Created:
one year ago
by:
Guest
Go to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/lodash/4.16.0/lodash.min.js"></script>
Script Preparation code:
var person = {name: 'Frederick', lastName: 'Corcino Alejo', foo: { bar: "baz" } }; var p = _.property("foo.bar");
Tests:
Lodash get
_.get(person, 'foo.bar');
_property
p(person);
native ?
person?.foo?.bar;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Lodash get
_property
native ?
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
11 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0
Browser/OS:
Firefox 142 on Mac OS X 10.15
View result in a separate tab
Embed
Embed Benchmark Result
native ?
970.8M/s
_property
12.4M/s
Lodash get
12.1M/s
View exact numbers
Test name
Executions per second
✓
native ?
970,839,168 Ops/sec
_property
12,396,376 Ops/sec
Lodash get
12,067,109 Ops/sec
Related benchmarks
Lodash.get vs Lodash.property
Lodash.get vs Lodash.property vs native
Lodash.get vs Lodash.property vs native 2
Lodash.get vs Lodash.property vs native vs native with optional chaining
deeply nested Lodash.get vs Lodash.property vs native
Comments
Confirm delete:
Do you really want to delete benchmark?