Run details:
Mozilla/5.0 (Linux; Android 11; SM-G973F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
destructuring with defaults, empty input 5512737.0 Ops/sec
lodash get, empty input 1253234.4 Ops/sec
destructuring with defaults, find item 2023489.0 Ops/sec
lodash get, find item 778687.9 Ops/sec
destructuring dynamic key 2040080.8 Ops/sec
lodash dynamic key 532540.3 Ops/sec
lodash dynamic key using array 1056996.1 Ops/sec
lodash dynamic key using manually cached array 1051402.6 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