Run details:
Mozilla/5.0 (Linux; Android 9; SM-G955U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
destructuring with defaults, empty input 1824576.9 Ops/sec
lodash get, empty input 596580.2 Ops/sec
destructuring with defaults, find item 621155.2 Ops/sec
lodash get, find item 359384.4 Ops/sec
destructuring dynamic key 633559.5 Ops/sec
lodash dynamic key 291172.3 Ops/sec
lodash dynamic key using array 426197.6 Ops/sec
lodash dynamic key using manually cached array 428977.8 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