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)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Filter length
    lodash sumBy
    lodash filter chaining
    manualMethod1
    manualMethod2 (with lambda function test)
    manualMethod3 (for-each loop, with lambda function test)

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:98.0) Gecko/20100101 Firefox/98.0
Firefox 98 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Filter length 3658686.0 Ops/sec
lodash sumBy 4611254.0 Ops/sec
lodash filter chaining 1018792.0 Ops/sec
manualMethod1 6866456.0 Ops/sec
manualMethod2 (with lambda function test) 6364288.0 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 4468477.0 Ops/sec