Run details:
Mozilla/5.0 (Linux; Android 11; SM-A705FN) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/46.02.4.5152
Chrome Mobile 77
Android
Mobile
3 years ago
Test name Executions per second
Array.prototype.reduce() 550373.0 Ops/sec
_.reduce() 469313.4 Ops/sec
_.reduce() with _.get() 257403.0 Ops/sec
_.keyBy() 534357.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Array.prototype.reduce()

  • _.reduce()

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

  • _.keyBy()


;