Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Windows 7
Desktop
2 years ago
Test name Executions per second
destructuring with defaults, empty input 46091428.0 Ops/sec
lodash get, empty input 2805893.5 Ops/sec
destructuring with defaults, find item 27192634.0 Ops/sec
lodash get, find item 2334965.8 Ops/sec
destructuring dynamic key 27242572.0 Ops/sec
lodash dynamic key 2317387.2 Ops/sec
lodash dynamic key using array 7310899.0 Ops/sec
lodash dynamic key using manually cached array 6366841.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • destructuring with defaults, empty input

  • lodash get, empty input

  • destructuring with defaults, find item

  • lodash get, find item

  • destructuring dynamic key

  • lodash dynamic key

  • lodash dynamic key using array

  • lodash dynamic key using manually cached array


;