Script Preparation code:
Tests:
  • re.match (regexp)

  • re.match (string)

  • re.test

  • str.startsWith

  • str.indexOf

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    re.match (regexp)
    re.match (string)
    re.test
    str.startsWith
    str.indexOf

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82 on Fedora
View result in a separate tab
Test name Executions per second
re.match (regexp) 10158850.0 Ops/sec
re.match (string) 2811995.0 Ops/sec
re.test 14524990.0 Ops/sec
str.startsWith 26785080.0 Ops/sec
str.indexOf 24555110.0 Ops/sec