Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/119.0.6045.109 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 119
iOS 16.6
Mobile
one year ago
Test name Executions per second
lodash/keyBy 8473211.0 Ops/sec
keyBy with native reduce 6518593.0 Ops/sec
keyBy with forEach 5702248.5 Ops/sec
keyBy with for loop 11512805.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash/keyBy

  • keyBy with native reduce

  • keyBy with forEach

  • keyBy with for loop