Run details:
Mozilla/5.0 (Android 8.0.0; Mobile; rv:123.0) Gecko/123.0 Firefox/123.0
Firefox Mobile 123
Android 8.0.0
Mobile
10 months ago
Test name Executions per second
destructuring with defaults, empty input 8428878.0 Ops/sec
lodash get, empty input 469266.8 Ops/sec
destructuring with defaults, find item 4599004.0 Ops/sec
lodash get, find item 392560.1 Ops/sec
destructuring dynamic key 4711477.5 Ops/sec
lodash dynamic key 383510.5 Ops/sec
lodash dynamic key using array 1009080.6 Ops/sec
lodash dynamic key using manually cached array 895296.5 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