Run details:
Mozilla/5.0 (iPad; CPU OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/84.0.4147.71 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 84
iOS 13.5
Tablet
4 years ago
Test name Executions per second
Array.prototype.reduce() 1304733.0 Ops/sec
_.reduce() 1147760.1 Ops/sec
_.reduce() with _.get() 591650.8 Ops/sec
_.keyBy() 1269544.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;