Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Linux
Desktop
one year ago
Benchmark.js
RegEx.test
17.9M/s
String.includes
9.5M/s
String.match
1.3M/s
View exact numbers
Test name Executions per second
RegEx.test 17,907,860 Ops/sec
String.includes 9,542,286 Ops/sec
String.match 1,334,913 Ops/sec
Script Preparation code:
Tests: