Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Windows
Desktop
one month ago
Test name Executions per second
_.sumBy value 1719.3 Ops/sec
map and reduce 9258.3 Ops/sec
_.sumBy with map 1405.6 Ops/sec
sum with for of loop 13147.3 Ops/sec
sum with for loop 160.5 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