Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77
Mac OS X 10.14.2
Desktop
5 years ago
Test name Executions per second
Array.prototype.reduce() 639239.2 Ops/sec
_.reduce() 541706.4 Ops/sec
_.reduce() with _.get() 257424.2 Ops/sec
_.keyBy() 613001.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;