Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Filter length 98.6 Ops/sec
lodash sumBy 121.3 Ops/sec
lodash filter chaining 101.5 Ops/sec
manualMethod1 304.6 Ops/sec
manualMethod2 (with lambda function test) 322.0 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 305.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)


;