Script Preparation code:
Tests:
  • Regex case

  • Indexof no trime, begins with

  • Indexof trim, begins with

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Regex case
    Indexof no trime, begins with
    Indexof trim, begins with

    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: 21 days ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
Firefox 92 on Ubuntu
View result in a separate tab
Test name Executions per second
Regex case 1477.6 Ops/sec
Indexof no trime, begins with 675.3 Ops/sec
Indexof trim, begins with 704.1 Ops/sec