Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
_.sumBy value 1809.3 Ops/sec
map and reduce 3920.2 Ops/sec
_.sumBy with map 1456.0 Ops/sec
sum with for of loop 14252.7 Ops/sec
sum with for loop 206.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • _.sumBy value

  • map and reduce

  • _.sumBy with map

  • sum with for of loop

  • sum with for loop


;