Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.7 Safari/537.36
Chrome 80
Fedora
Desktop
4 years ago
Test name Executions per second
Array.prototype.reduce() 436238.0 Ops/sec
_.reduce() 418641.6 Ops/sec
_.reduce() with _.get() 226905.1 Ops/sec
_.keyBy() 449084.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;