Test case name | Result |
---|---|
text.includes() | |
regex.test() | |
string.match() | |
string.indexOf() |
Test name | Executions per second |
---|---|
text.includes() | 19996200.0 Ops/sec |
regex.test() | 11502370.0 Ops/sec |
string.match() | 7938245.0 Ops/sec |
string.indexOf() | 19328500.0 Ops/sec |