Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127
Windows
Desktop
5 months ago
Test name Executions per second
destructuring with defaults, empty input 77056128.0 Ops/sec
lodash get, empty input 4881094.0 Ops/sec
destructuring with defaults, find item 42383316.0 Ops/sec
lodash get, find item 4222496.5 Ops/sec
destructuring dynamic key 43610452.0 Ops/sec
lodash dynamic key 2472558.2 Ops/sec
lodash dynamic key using array 12637646.0 Ops/sec
lodash dynamic key using manually cached array 10769981.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