Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95
Windows
Desktop
3 years ago
Test name Executions per second
lodash/keyBy 2174619.5 Ops/sec
keyBy with native reduce 2915648.2 Ops/sec
keyBy with forEach 1997751.6 Ops/sec
keyBy with for loop 4467604.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash/keyBy

  • keyBy with native reduce

  • keyBy with forEach

  • keyBy with for loop