Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36
Chrome Mobile 116
Android
Mobile
8 months ago
Test name Executions per second
destructuring with defaults, find item 1168974.0 Ops/sec
lodash get, find item 601381.5 Ops/sec
dlv get, find item 708905.6 Ops/sec
destructuring dynamic key 1138094.0 Ops/sec
lodash dynamic key 454100.8 Ops/sec
dlv dynamic key 382811.5 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