Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Windows
Desktop
8 months ago
Test name Executions per second
_.sumBy value 1650.8 Ops/sec
map and reduce 2608.0 Ops/sec
_.sumBy with map 2583.9 Ops/sec
sum with for of loop 2093.0 Ops/sec
sum with for loop 8792.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