Run details:
Mozilla/5.0 (Linux; Android 10; GM1901) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.117 Mobile Safari/537.36
Chrome Mobile 81
Android
Mobile
4 years ago
Test name Executions per second
Array.prototype.reduce() 529567.6 Ops/sec
_.reduce() 456226.5 Ops/sec
_.reduce() with _.get() 253935.5 Ops/sec
_.keyBy() 569254.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;