Run details:
Mozilla/5.0 (Linux; Android 7.0; SAMSUNG SM-G925F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/13.0 Chrome/83.0.4103.106 Mobile Safari/537.36
Chrome Mobile 83
Android 7.0
Mobile
3 years ago
Test name Executions per second
destructuring with defaults, empty input 920838.4 Ops/sec
lodash get, empty input 251361.9 Ops/sec
destructuring with defaults, find item 303880.5 Ops/sec
lodash get, find item 157559.9 Ops/sec
destructuring null input 0.0 Ops/sec
lodash null input 421684.2 Ops/sec
destructuring undefined input 0.0 Ops/sec
lodash undefined input 404213.2 Ops/sec
destructuring dynamic key 303563.1 Ops/sec
lodash dynamic key 176650.2 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