Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.64
Chrome 112
Windows
Desktop
one year ago
Test name Executions per second
Array.prototype.reduce() 958006.5 Ops/sec
_.reduce() 884354.6 Ops/sec
_.reduce() with _.get() 433332.8 Ops/sec
_.keyBy() 1107007.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

  • _.reduce() with _.get()

  • _.keyBy()


;