Run details:
Mozilla/5.0 (Android 14; Mobile; rv:120.0) Gecko/120.0 Firefox/120.0
Firefox Mobile 120
Android
Mobile
11 months ago
Test name Executions per second
Filter length 82.4 Ops/sec
lodash sumBy 100.2 Ops/sec
lodash filter chaining 80.3 Ops/sec
manualMethod1 265.1 Ops/sec
manualMethod2 (with lambda function test) 107.0 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 84.7 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)


;