Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Windows
Desktop
7 months ago
Test name Executions per second
Lodash get 2756077.8 Ops/sec
Native naive 16482294.0 Ops/sec
Guarded native 3626380.2 Ops/sec
Shimmed get. 917644.2 Ops/sec
Optional chaining 16448768.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash get

  • Native naive

  • Guarded native

  • Shimmed get.

  • Optional chaining