Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.93 Safari/537.36 Vivaldi/2.8.1664.40
Chrome 77
Windows
Desktop
3 years ago
Test name Executions per second
Dot notation property accessor 7320824.0 Ops/sec
Dot property notation accessor with default value 5650833.0 Ops/sec
Lodash.get method 1058381.8 Ops/sec
Lodash.get method with default 1940616.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Dot notation property accessor

  • Dot property notation accessor with default value

  • Lodash.get method

  • Lodash.get method with default