Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
7 months ago
Test name Executions per second
Filter length 210.1 Ops/sec
lodash sumBy 354.1 Ops/sec
lodash filter chaining 212.5 Ops/sec
manualMethod1 355.1 Ops/sec
manualMethod2 (with lambda function test) 358.8 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 328.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Filter length

  • lodash sumBy

  • lodash filter chaining

  • manualMethod1

  • manualMethod2 (with lambda function test)

  • manualMethod3 (for-each loop, with lambda function test)


;