Script Preparation code:
Tests:
  • unsorted array includes existing item

  • sorted array includes existing item

  • unsorted array includes unexisting item

  • sorted array includes unexisting item

  • unsorted set has existing item

  • sorted set has existing item

  • unsorted set has unexisting item

  • sorted set has unexisting item

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    unsorted array includes existing item
    sorted array includes existing item
    unsorted array includes unexisting item
    sorted array includes unexisting item
    unsorted set has existing item
    sorted set has existing item
    unsorted set has unexisting item
    sorted set has unexisting item

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
Chrome 93 on Windows
View result in a separate tab
Test name Executions per second
unsorted array includes existing item 2546281.8 Ops/sec
sorted array includes existing item 2478980.2 Ops/sec
unsorted array includes unexisting item 2524959.0 Ops/sec
sorted array includes unexisting item 2525892.2 Ops/sec
unsorted set has existing item 2949048.5 Ops/sec
sorted set has existing item 2920280.5 Ops/sec
unsorted set has unexisting item 2947622.0 Ops/sec
sorted set has unexisting item 2924561.8 Ops/sec


;