Run details:
Mozilla/5.0 (Android 11; Mobile; rv:88.0) Gecko/88.0 Firefox/88.0
Firefox Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
destructuring with defaults, empty input 56193764.0 Ops/sec
lodash get, empty input 2172496.0 Ops/sec
destructuring with defaults, find item 23796260.0 Ops/sec
lodash get, find item 1661642.2 Ops/sec
destructuring dynamic key 23086184.0 Ops/sec
lodash dynamic key 1405881.8 Ops/sec
lodash dynamic key using array 7275390.5 Ops/sec
lodash dynamic key using manually cached array 4318941.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