Script Preparation code:
AخA
 
var string = "Hello world!";
var regex = /Hello/;
Tests:
  • String.includes

     
    string.includes("Hello");
  • String.match

     
    string.match("Hello");
  • String.startsWith

     
    string.startsWith("Hello");
  • String === value

     
    string === "Hello world!"
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • 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: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
String.includes 145317136.0 Ops/sec
String.match 9232000.0 Ops/sec
String.startsWith 75353144.0 Ops/sec
String === value 139048720.0 Ops/sec