Run details:
Mozilla/5.0 (Linux; Android 13; Pixel 4 XL) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
one year ago
Test name Executions per second
destructuring with defaults, empty input 2292537.0 Ops/sec
lodash get, empty input 773228.6 Ops/sec
destructuring with defaults, find item 800810.4 Ops/sec
lodash get, find item 488236.8 Ops/sec
destructuring dynamic key 803913.8 Ops/sec
lodash dynamic key 356128.6 Ops/sec
lodash dynamic key using array 531433.6 Ops/sec
lodash dynamic key using manually cached array 525239.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