HTML Preparation code:
Script Preparation code:
Tests:
  • .filter()

  • Lodash _.filter()

  • .map().filter()

  • For loop

  • .reduce()

  • .reduce() with comparisionFunction

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .filter()
    Lodash _.filter()
    .map().filter()
    For loop
    .reduce()
    .reduce() with comparisionFunction

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
.filter() 740.4 Ops/sec
Lodash _.filter() 893.6 Ops/sec
.map().filter() 56.8 Ops/sec
For loop 90.2 Ops/sec
.reduce() 775.2 Ops/sec
.reduce() with comparisionFunction 156.8 Ops/sec