Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Filter length 67.7 Ops/sec
lodash sumBy 90.4 Ops/sec
lodash filter chaining 71.6 Ops/sec
manualMethod1 183.4 Ops/sec
manualMethod2 (with lambda function test) 92.8 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 68.1 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)


;