Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.16 Safari/537.36
Chrome 70
Linux
Desktop
5 years ago
Test name Executions per second
Array.prototype.reduce() 1028071.1 Ops/sec
_.reduce() 839499.3 Ops/sec
_.reduce() with _.get() 397860.5 Ops/sec
_.keyBy() 923077.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;