Optional chaining vs Lodash.get with nullish coalescing (version: 1)
Forked from a previous comparison which made use of the lodash get's default parameter. The comparison wasn't fair because the vanilla JS wasn't adding a default value with nullish coalescing.
Comparing performance of: Optional Chaining vs Lodash
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
Optional Chaining
Lodash
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0