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

     
    regex.test(string);
  • String.includes

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

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

     
    string.indexOf("Hello")
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    RegEx.test
    String.includes
    String.match
    String.indexof

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Android 10; Mobile; rv:109.0) Gecko/112.0 Firefox/112.0
Firefox Mobile 112 on Android
View result in a separate tab
Test name Executions per second
RegEx.test 9960911.0 Ops/sec
String.includes 13843043.0 Ops/sec
String.match 4720408.5 Ops/sec
String.indexof 508232384.0 Ops/sec