Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    String.includes
    String.match
    String.startsWith
    String === value

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0
Chrome 137 on Windows
View result in a separate tab
String === value
127.4M/s
String.startsWith
79.1M/s
String.includes
51.3M/s
String.match
8.8M/s
View exact numbers
Test name Executions per second
String === value 127,372,184 Ops/sec
String.startsWith 79,096,760 Ops/sec
String.includes 51,309,400 Ops/sec
String.match 8,829,419 Ops/sec