Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
=== known length
189.4M/s
String.includes
184.0M/s
==
181.9M/s
startsWith
92.0M/s
RegEx.test
51.6M/s
String.match
9.7M/s

Fastest: === known length (19.4x faster)

View exact numbers
  • === known length: 189,410,976 ops/sec
  • String.includes: 183,971,360 ops/sec
  • ==: 181,894,848 ops/sec
  • startsWith: 91,959,544 ops/sec
  • RegEx.test: 51,608,328 ops/sec
  • String.match: 9,741,514 ops/sec

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

Browser OS User Agent When Created
Chrome 138 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0 one year ago
Chrome 137 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 one year ago
Chrome 136 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 one year ago
Chrome 134 Mac OS X 10.15.7 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 one year ago
Chrome 134 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 one year ago
Chrome 133 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 one year ago
Firefox 129 Ubuntu Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0 one year ago