Script Preparation code:
Tests:
  • array includes

  • string includes

  • regex test

  • switch case

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    array includes
    string includes
    regex test
    switch case

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43
Chrome 96 on Windows
View result in a separate tab
Test name Executions per second
array includes 8065943.0 Ops/sec
string includes 6129047.0 Ops/sec
regex test 6202559.0 Ops/sec
switch case 1524952320.0 Ops/sec


;