Run details:
Mozilla/5.0 (Linux; Android 7.0; SM-G930F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android 7.0
Mobile
one year ago
Test name Executions per second
destructuring with defaults, empty input 1755423.5 Ops/sec
lodash get, empty input 560193.5 Ops/sec
destructuring with defaults, find item 421360.0 Ops/sec
lodash get, find item 286195.4 Ops/sec
destructuring dynamic key 426538.5 Ops/sec
lodash dynamic key 236401.3 Ops/sec
lodash dynamic key using array 239680.7 Ops/sec
lodash dynamic key using manually cached array 142387.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


;