Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array includes (first)
    Set has (first)
    Map has (first)
    Array includes (mid)
    Set has (mid)
    Map has (mid)
    Array includes (last)
    Set has (last)
    Map has (last)

    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_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Mac OS X 10.15.7
View result in a separate tab
Array includes (first)
15.0M/s
Set has (mid)
14.2M/s
Set has (last)
14.1M/s
Map has (mid)
14.1M/s
Map has (last)
14.0M/s
Set has (first)
11.0M/s
Map has (first)
10.9M/s
Array includes (mid)
8.9M/s
Array includes (last)
6.7M/s
View exact numbers
Test name Executions per second
Array includes (first) 15,018,375 Ops/sec
Set has (mid) 14,200,633 Ops/sec
Set has (last) 14,112,494 Ops/sec
Map has (mid) 14,100,850 Ops/sec
Map has (last) 14,016,691 Ops/sec
Set has (first) 10,967,130 Ops/sec
Map has (first) 10,872,117 Ops/sec
Array includes (mid) 8,886,254 Ops/sec
Array includes (last) 6,651,759 Ops/sec