Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36
Chrome 86
Mac OS X 11.0.0
Desktop
4 years ago
Test name Executions per second
Array.prototype.reduce() 967402.8 Ops/sec
_.reduce() 893130.4 Ops/sec
_.reduce() with _.get() 402901.6 Ops/sec
_.keyBy() 921131.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;