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
Jump 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:
8 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
Test name
Executions per second
Lodash get
12067109.0 Ops/sec
_property
12396376.0 Ops/sec
native ?
970839168.0 Ops/sec
Related benchmarks:
Lodash.get vs Lodash.property
Lodash.get vs Lodash.property vs native
Lodash.get vs Lodash.property vs Dot vs Brackets
Lodash.get vs Lodash.property vs native 2
Lodash.get vs Lodash.property vs native 3
Lodash.get vs Lodash.property (new instance each time) vs native
Lodash.get vs Lodash.property vs native dynamic
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?