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

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.2 Ops/sec
lodash sumBy 4611254.0 Ops/sec
lodash filter chaining 1018792.1 Ops/sec
manualMethod1 6866455.5 Ops/sec
manualMethod2 (with lambda function test) 6364288.0 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 4468476.5 Ops/sec


;