Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Firefox 122
Windows
Desktop
8 months ago
Test name Executions per second
_.sumBy value 1631.7 Ops/sec
map and reduce 2669.6 Ops/sec
_.sumBy with map 2406.0 Ops/sec
sum with for of loop 2035.9 Ops/sec
sum with for loop 8443.2 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