Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
lodash.get 9515199.0 Ops/sec
Optional chaining (babel es2015) 121970192.0 Ops/sec
safeGet 7193970.5 Ops/sec
dlv (dot notation) 5313342.5 Ops/sec
dlv (array notation) 12462778.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.get

  • Optional chaining (babel es2015)

  • safeGet

  • dlv (dot notation)

  • dlv (array notation)