Script Preparation code:
Tests:

Historical Performance Data aggregated from 23 community runs

Desktop Results:
Chrome 14 runs
RegEx.test
8.5M/s
String.match
6.8M/s

Fastest: RegEx.test (1.3x faster)

View exact numbers
  • RegEx.test: 8,515,798 ops/sec
  • String.match: 6,794,083 ops/sec
Firefox 9 runs
RegEx.test
43.5M/s
String.match
27.4M/s

Fastest: RegEx.test (1.6x faster)

View exact numbers
  • RegEx.test: 43,463,668 ops/sec
  • String.match: 27,392,626 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.match

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 27 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:153.0) Gecko/20100101 Firefox/153.0
Firefox 153 on Mac OS X 10.15
View result in a separate tab
RegEx.test
57.4M/s
String.match
34.9M/s
View exact numbers
Test name Executions per second
RegEx.test 57,444,852 Ops/sec
String.match 34,916,368 Ops/sec