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
6 months ago
Test name Executions per second
Lodash get 2750863.5 Ops/sec
Native naive 16193161.0 Ops/sec
Guarded native 3663679.8 Ops/sec
Shimmed get. 922865.3 Ops/sec
Optional chaining 16024869.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash get

  • Native naive

  • Guarded native

  • Shimmed get.

  • Optional chaining