Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36
Chrome 89
Windows
Desktop
3 years ago
Test name Executions per second
Array.prototype.reduce() 1185276.0 Ops/sec
_.reduce() 1110349.1 Ops/sec
_.reduce() with _.get() 540526.6 Ops/sec
_.keyBy() 1272682.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;