HTML Preparation code:
Script Preparation code:
Tests:
  • indexOf at end of sentence v1

  • indexOf at end of sentence v2

  • string endsWith

  • Regex match ends with

  • indexOf starts with

  • search starts with

  • string startsWith

  • Regex match starts with

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    indexOf at end of sentence v1
    indexOf at end of sentence v2
    string endsWith
    Regex match ends with
    indexOf starts with
    search starts with
    string startsWith
    Regex match starts with

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
indexOf at end of sentence v1 3972.0 Ops/sec
indexOf at end of sentence v2 3954.6 Ops/sec
string endsWith 123.9 Ops/sec
Regex match ends with 122.8 Ops/sec
indexOf starts with 3926.6 Ops/sec
search starts with 42.0 Ops/sec
string startsWith 123.7 Ops/sec
Regex match starts with 120.6 Ops/sec


;