Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Linux
Desktop
3 years ago
Test name Executions per second
Array.prototype.reduce() 4142903.5 Ops/sec
_.reduce() 3662703.2 Ops/sec
_.reduce() with _.get() 1289919.6 Ops/sec
_.keyBy() 1440394.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()