Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
destructuring with defaults, empty input 61707068.0 Ops/sec
lodash get, empty input 3982028.8 Ops/sec
destructuring with defaults, find item 30800354.0 Ops/sec
lodash get, find item 3277884.2 Ops/sec
destructuring dynamic key 30763274.0 Ops/sec
lodash dynamic key 2660770.5 Ops/sec
lodash dynamic key using array 9446505.0 Ops/sec
lodash dynamic key using manually cached array 7479969.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


;