| Test case name | Result |
|---|---|
| indexOf at end of sentence v1 | |
| indexOf at end of sentence v2 | |
| string endsWith | |
| Regex match ends with | |
| indexOf starts with | |
| search starts with | |
| string startsWith | |
| Regex match starts with |
| Test name | Executions per second |
|---|---|
| indexOf at end of sentence v1 | 3972.0 Ops/sec |
| indexOf at end of sentence v2 | 3954.6 Ops/sec |
| string endsWith | 123.9 Ops/sec |
| Regex match ends with | 122.8 Ops/sec |
| indexOf starts with | 3926.6 Ops/sec |
| search starts with | 42.0 Ops/sec |
| string startsWith | 123.7 Ops/sec |
| Regex match starts with | 120.6 Ops/sec |