Run details:
Mozilla/5.0 (Linux; Android 6.0.1; D5833 Build/23.5.A.1.291) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.85 Mobile Safari/537.36
Chrome Mobile 68
Android 6.0.1
Mobile
6 years ago
Test name Executions per second
destructuring with defaults, empty input 1501373.8 Ops/sec
lodash get, empty input 176083.8 Ops/sec
destructuring with defaults, find item 258885.2 Ops/sec
lodash get, find item 76002.8 Ops/sec
destructuring null input 0.0 Ops/sec
lodash null input 432005.6 Ops/sec
destructuring undefined input 0.0 Ops/sec
lodash undefined input 404613.0 Ops/sec
destructuring dynamic key 303250.5 Ops/sec
lodash dynamic key 75801.1 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