Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Mac OS X 10.16.0
Desktop
4 years ago
Test name Executions per second
Array.prototype.reduce() 987956.1 Ops/sec
_.reduce() 937002.9 Ops/sec
_.reduce() with _.get() 448973.7 Ops/sec
_.keyBy() 1008284.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;