Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:64.0) Gecko/20100101 Firefox/64.0
Firefox 64
Mac OS X 10.13
Desktop
5 years ago
Test name Executions per second
destructuring with defaults, empty input 111124000.0 Ops/sec
lodash get, empty input 2056480.0 Ops/sec
destructuring with defaults, find item 18661180.0 Ops/sec
lodash get, find item 1512473.0 Ops/sec
destructuring null input 0.0 Ops/sec
lodash null input 51005950.0 Ops/sec
destructuring undefined input 0.0 Ops/sec
lodash undefined input 50366680.0 Ops/sec
destructuring dynamic key 26884740.0 Ops/sec
lodash dynamic key 2013211.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 null input

  • lodash null input

  • destructuring undefined input

  • lodash undefined input

  • destructuring dynamic key

  • lodash dynamic key