Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
4 months ago
Test name Executions per second
destructuring with defaults, find item 3331291.0 Ops/sec
lodash get, find item 1619807.0 Ops/sec
dlv get, find item 1879262.0 Ops/sec
destructuring dynamic key 3184146.0 Ops/sec
lodash dynamic key 1284866.0 Ops/sec
dlv dynamic key 1212492.0 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