Script Preparation code:
Tests:

Historical Performance Data aggregated from 1,125 community runs

Desktop Results:
Chrome 885 runs
String.includes
29.4M/s
RegEx.test
12.1M/s
String.match
6.7M/s

Fastest: String.includes (4.4x faster)

View exact numbers
  • String.includes: 29,395,834 ops/sec
  • RegEx.test: 12,144,667 ops/sec
  • String.match: 6,714,975 ops/sec
Firefox 146 runs
String.includes
1452.7M/s
RegEx.test
40.7M/s
String.match
19.7M/s

Fastest: String.includes (73.8x faster)

View exact numbers
  • String.includes: 1,452,672,256 ops/sec
  • RegEx.test: 40,666,824 ops/sec
  • String.match: 19,678,120 ops/sec
Safari 32 runs
RegEx.test
54.8M/s
String.includes
28.6M/s
String.match
14.9M/s

Fastest: RegEx.test (3.7x faster)

View exact numbers
  • RegEx.test: 54,787,940 ops/sec
  • String.includes: 28,643,542 ops/sec
  • String.match: 14,946,438 ops/sec
Other 15 runs
String.includes
27.9M/s
RegEx.test
11.5M/s
String.match
7.0M/s

Fastest: String.includes (4.0x faster)

View exact numbers
  • String.includes: 27,900,214 ops/sec
  • RegEx.test: 11,541,375 ops/sec
  • String.match: 7,012,830 ops/sec
Mobile Results:
Chrome 33 runs
String.includes
13.2M/s
RegEx.test
5.3M/s
String.match
3.0M/s

Fastest: String.includes (4.4x faster)

View exact numbers
  • String.includes: 13,243,883 ops/sec
  • RegEx.test: 5,282,012 ops/sec
  • String.match: 3,042,863 ops/sec
Safari 14 runs
String.includes
21.1M/s
RegEx.test
16.9M/s
String.match
11.5M/s

Fastest: String.includes (1.8x faster)

View exact numbers
  • String.includes: 21,065,230 ops/sec
  • RegEx.test: 16,911,086 ops/sec
  • String.match: 11,531,308 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    RegEx.test
    String.includes
    String.match

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 13 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:153.0) Gecko/20100101 Firefox/153.0
Firefox 153 on Windows
View result in a separate tab
String.includes
1653.0M/s
RegEx.test
40.7M/s
String.match
21.6M/s
View exact numbers
Test name Executions per second
String.includes 1,652,979,328 Ops/sec
RegEx.test 40,678,084 Ops/sec
String.match 21,606,092 Ops/sec