Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/121.0.6167.138 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 121
iOS 17.2
Mobile
3 months ago
Test name Executions per second
destructuring with defaults, empty input 5656244.0 Ops/sec
lodash get, empty input 975671.2 Ops/sec
destructuring with defaults, find item 1610104.0 Ops/sec
lodash get, find item 1117375.0 Ops/sec
destructuring dynamic key 4716849.0 Ops/sec
lodash dynamic key 510263.9 Ops/sec
lodash dynamic key using array 1569946.0 Ops/sec
lodash dynamic key using manually cached array 2066528.0 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