Tests:
  • includes

    AخA
     
    const str = "application/json; charset=utf-8"
    str.includes("application/json")
  • startsWith

     
    const str = "application/json; charset=utf-8"
    str.startsWith("application/json")
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    includes
    startsWith

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Windows
View result in a separate tab
Test name Executions per second
includes 1308550656.0 Ops/sec
startsWith 19261588.0 Ops/sec