Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36
Chrome Mobile 114
Android
Mobile
one year ago
Test name Executions per second
destructuring with defaults, empty input 3850826.2 Ops/sec
lodash get, empty input 1238080.5 Ops/sec
destructuring with defaults, find item 1170395.0 Ops/sec
lodash get, find item 701032.6 Ops/sec
destructuring dynamic key 1166442.9 Ops/sec
lodash dynamic key 505076.9 Ops/sec
lodash dynamic key using array 817224.9 Ops/sec
lodash dynamic key using manually cached array 821957.1 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


;