Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Filter length 139.8 Ops/sec
lodash sumBy 157.9 Ops/sec
lodash filter chaining 141.6 Ops/sec
manualMethod1 322.7 Ops/sec
manualMethod2 (with lambda function test) 325.2 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 197.8 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)


;