HTML Preparation code:
Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    regex start
    startsWith
    regex end
    endsWith
    indexOf start
    indexOf end
    charAt end
    charCodeAt end
    charCodeAt start
    substring

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Linux
View result in a separate tab
substring
12K/s
indexOf end
12K/s
indexOf start
12K/s
startsWith
1K/s
charCodeAt start
1K/s
endsWith
1K/s
charCodeAt end
926/s
charAt end
870/s
regex start
562/s
regex end
521/s
View exact numbers
Test name Executions per second
substring 12,229 Ops/sec
indexOf end 12,022 Ops/sec
indexOf start 11,766 Ops/sec
startsWith 1,282 Ops/sec
charCodeAt start 1,077 Ops/sec
endsWith 1,052 Ops/sec
charCodeAt end 926 Ops/sec
charAt end 870 Ops/sec
regex start 562 Ops/sec
regex end 521 Ops/sec