Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
new RegExp()
13.3M/s
Literal
13.3M/s
new RegExp(Literal)
7.6M/s

Fastest: new RegExp() (1.7x faster)

View exact numbers
  • new RegExp(): 13,313,497 ops/sec
  • Literal: 13,259,180 ops/sec
  • new RegExp(Literal): 7,619,812 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 135 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 one year ago
Chrome 131 Mac OS X 10.15.7 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 one year ago
Firefox 131 Linux Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0 one year ago
Chrome 121 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 2 years ago
Chrome 120 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 2 years ago
Chrome 120 Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 2 years ago