Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60
Windows
Desktop
5 years ago
Test name Executions per second
Array.prototype.reduce() 2757260.0 Ops/sec
_.reduce() 2382614.0 Ops/sec
_.reduce() with _.get() 1040841.0 Ops/sec
_.keyBy() 876711.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()