Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
Chrome 70
Mac OS X 10.14.0
Desktop
5 years ago
Test name Executions per second
Array.prototype.reduce() 813352.3 Ops/sec
_.reduce() 665981.6 Ops/sec
_.reduce() with _.get() 320054.4 Ops/sec
_.keyBy() 783285.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;