Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Mac OS X 10.14.6
Desktop
4 years ago
Test name Executions per second
destructuring with defaults, find item 1714324.0 Ops/sec
lodash get, find item 898961.5 Ops/sec
dlv get, find item 946865.7 Ops/sec
destructuring dynamic key 1756259.0 Ops/sec
lodash dynamic key 733293.6 Ops/sec
dlv dynamic key 649810.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • destructuring with defaults, find item

  • lodash get, find item

  • dlv get, find item

  • destructuring dynamic key

  • lodash dynamic key

  • dlv dynamic key