Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Filter length 3658686.2 Ops/sec
lodash sumBy 4611254.0 Ops/sec
lodash filter chaining 1018792.1 Ops/sec
manualMethod1 6866455.5 Ops/sec
manualMethod2 (with lambda function test) 6364288.0 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 4468476.5 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)


;