Tests:
  • startsWith

    AخA
     
    "@MyVariable".startsWith("@")
  • match

     
    "@MyVariable".match(/@.*/)
  • test

     
    /@*./.test("@MyVariable")
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    startsWith
    match
    test

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Windows
View result in a separate tab
Test name Executions per second
startsWith 2085696256.0 Ops/sec
match 38584548.0 Ops/sec
test 72152584.0 Ops/sec