Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Filter length 134.5 Ops/sec
lodash sumBy 165.9 Ops/sec
lodash filter chaining 143.0 Ops/sec
manualMethod1 331.7 Ops/sec
manualMethod2 (with lambda function test) 340.4 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 320.9 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)


;