Script Preparation code:
Tests:
  • intersect_for(shortArr1, shortArr2)

  • intersect_filter_indexOf(shortArr1, shortArr2)

  • intersect_filter_in(shortArr1, shortArr2)

  • intersect_for_in(shortArr1, shortArr2)

  • intersect_filter_includes(shortArr1, shortArr2)

  • intersect_filter_has_this(shortArr1, shortArr2)

  • intersect_filter_has_arrow(shortArr1, shortArr2)

  • intersect_for_has(shortArr1, shortArr2)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    intersect_for(shortArr1, shortArr2)
    intersect_filter_indexOf(shortArr1, shortArr2)
    intersect_filter_in(shortArr1, shortArr2)
    intersect_for_in(shortArr1, shortArr2)
    intersect_filter_includes(shortArr1, shortArr2)
    intersect_filter_has_this(shortArr1, shortArr2)
    intersect_filter_has_arrow(shortArr1, shortArr2)
    intersect_for_has(shortArr1, shortArr2)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Firefox 78 on Windows
View result in a separate tab
Test name Executions per second
intersect_for(shortArr1, shortArr2) 150416.4 Ops/sec
intersect_filter_indexOf(shortArr1, shortArr2) 152818.9 Ops/sec
intersect_filter_in(shortArr1, shortArr2) 708758.7 Ops/sec
intersect_for_in(shortArr1, shortArr2) 985539.2 Ops/sec
intersect_filter_includes(shortArr1, shortArr2) 124490.2 Ops/sec
intersect_filter_has_this(shortArr1, shortArr2) 131287.8 Ops/sec
intersect_filter_has_arrow(shortArr1, shortArr2) 128878.7 Ops/sec
intersect_for_has(shortArr1, shortArr2) 128608.3 Ops/sec


;