Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Chrome 97
Linux
Desktop
2 years ago
Test name Executions per second
lodash/keyBy 4468702.0 Ops/sec
keyBy with native reduce 5862992.5 Ops/sec
keyBy with forEach 3224257.2 Ops/sec
keyBy with for loop 6125627.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash/keyBy

  • keyBy with native reduce

  • keyBy with forEach

  • keyBy with for loop