Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Mac OS X 10.15.7
Desktop
26 days ago
Test name Executions per second
regex.test 23823738.0 Ops/sec
string.includes 98594952.0 Ops/sec
HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
var string = "Hello world!";
var regex = /world/;
Tests:
  • regex.test

     
    regex.test(string);
  • string.includes

     
    string.includes("world")