Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0
Firefox 109
Windows
Desktop
2 years ago
Test name Executions per second
lodash/keyBy 9964059.0 Ops/sec
keyBy with native reduce 15039233.0 Ops/sec
keyBy with forEach 10272634.0 Ops/sec
keyBy with for loop 19656692.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash/keyBy

  • keyBy with native reduce

  • keyBy with forEach

  • keyBy with for loop