Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.1.1
Mobile
9 months ago
Test name Executions per second
_.sumBy value 3533.8 Ops/sec
map and reduce 3779.9 Ops/sec
_.sumBy with map 5439.5 Ops/sec
sum with for of loop 4116.7 Ops/sec
sum with for loop 83.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


;