Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98
Windows
Desktop
2 years ago
Test name Executions per second
Filter length 87.6 Ops/sec
lodash sumBy 114.1 Ops/sec
lodash filter chaining 90.9 Ops/sec
manualMethod1 335.4 Ops/sec
manualMethod2 (with lambda function test) 135.4 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 100.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)


;