Run details:
Mozilla/5.0 (Linux; Android 9; SM-G955F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
destructuring with defaults, empty input 1485731.2 Ops/sec
lodash get, empty input 391340.6 Ops/sec
destructuring with defaults, find item 380420.6 Ops/sec
lodash get, find item 214726.3 Ops/sec
destructuring dynamic key 378358.5 Ops/sec
lodash dynamic key 170122.8 Ops/sec
lodash dynamic key using array 265709.2 Ops/sec
lodash dynamic key using manually cached array 265708.2 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