Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.90 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 130
iOS 17.6
Mobile
one month ago
Test name Executions per second
lodash/keyBy 7995477.0 Ops/sec
keyBy with native reduce 6971392.5 Ops/sec
keyBy with forEach 6529346.0 Ops/sec
keyBy with for loop 7179448.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash/keyBy

  • keyBy with native reduce

  • keyBy with forEach

  • keyBy with for loop