Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash.get vs Lodash.property vs native with ?
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
Browser:
Firefox 141
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
native ?
949.1M/s
_property
11.9M/s
Lodash get
11.7M/s
View exact numbers
Test name
Executions per second
✓
native ?
949,069,696 Ops/sec
_property
11,882,064 Ops/sec
Lodash get
11,658,440 Ops/sec
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;