Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
Filter length 158.2 Ops/sec
lodash sumBy 200.3 Ops/sec
lodash filter chaining 156.1 Ops/sec
manualMethod1 390.7 Ops/sec
manualMethod2 (with lambda function test) 387.7 Ops/sec
manualMethod3 (for-each loop, with lambda function test) 361.5 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)


;