Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Windows
Desktop
one year ago
Test name Executions per second
destructuring with defaults, find item 6205548.0 Ops/sec
lodash get, find item 2466309.0 Ops/sec
dlv get, find item 3392507.0 Ops/sec
destructuring dynamic key 6859416.0 Ops/sec
lodash dynamic key 2217253.0 Ops/sec
dlv dynamic key 2112720.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