Test name | Executions per second |
---|---|
regexp .test() | 18685540.0 Ops/sec |
string .match() | 15542440.0 Ops/sec |
indexOf === 0 | 29340420.0 Ops/sec |
string .startsWith() | 19917830.0 Ops/sec |
regexp .test() failure | 18817130.0 Ops/sec |
string .match() failure | 15553870.0 Ops/sec |
indexOf === 0 failure | 29321680.0 Ops/sec |
string .startsWith() failure | 19895460.0 Ops/sec |