Run details:
Mozilla/5.0 (Linux; Android 8.0.0; MI 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36
Chrome Mobile 79
Android 8.0.0
Mobile
4 years ago
Test name Executions per second
destructuring with defaults, empty input 727487.6 Ops/sec
lodash get, empty input 245129.8 Ops/sec
destructuring with defaults, find item 239052.9 Ops/sec
lodash get, find item 125245.4 Ops/sec
destructuring dynamic key 244795.8 Ops/sec
lodash dynamic key 83824.2 Ops/sec
lodash dynamic key using array 197506.4 Ops/sec
lodash dynamic key using manually cached array 184249.4 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