Run details:
Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Windows
Desktop
4 years ago
Test name Executions per second
Array.prototype.reduce() 3720238.0 Ops/sec
_.reduce() 2849977.2 Ops/sec
_.reduce() with _.get() 1201923.1 Ops/sec
_.keyBy() 1025828.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;