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 9360786.0 Ops/sec
keyBy with native reduce 14823099.0 Ops/sec
keyBy with forEach 10071534.0 Ops/sec
keyBy with for loop 18995362.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash/keyBy

  • keyBy with native reduce

  • keyBy with forEach

  • keyBy with for loop