Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Chrome 80
Mac OS X 10.15.1
Desktop
4 years ago
Test name Executions per second
ES5 Optional Chaining 3672609.0 Ops/sec
ES6 Optional Chaining 7353018.0 Ops/sec
Lodash Get 1060486.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • ES5 Optional Chaining

  • ES6 Optional Chaining

  • Lodash Get