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 1446879.0 Ops/sec
lodash get, empty input 393981.4 Ops/sec
destructuring with defaults, find item 378952.6 Ops/sec
lodash get, find item 212490.9 Ops/sec
destructuring dynamic key 380528.2 Ops/sec
lodash dynamic key 170260.5 Ops/sec
lodash dynamic key using array 257657.8 Ops/sec
lodash dynamic key using manually cached array 264794.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


;