Test case name | Result |
---|---|
text.includes() | |
regex.test() | |
string.match() | |
string.indexOf() |
Test name | Executions per second |
---|---|
text.includes() | 399774304.0 Ops/sec |
regex.test() | 7228724.5 Ops/sec |
string.match() | 4712842.5 Ops/sec |
string.indexOf() | 393570304.0 Ops/sec |