Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Windows
Desktop
one year ago
Test name Executions per second
lodash/keyBy 6419625.0 Ops/sec
keyBy with native reduce 10172369.0 Ops/sec
keyBy with forEach 7303610.0 Ops/sec
keyBy with for loop 13662431.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash/keyBy

  • keyBy with native reduce

  • keyBy with forEach

  • keyBy with for loop