Test case name | Result |
---|---|
regex | |
startsWith | |
custom startsWith | |
indexOf | |
substring | |
custom startsWith2 |
Test name | Executions per second |
---|---|
regex | 29004070.0 Ops/sec |
startsWith | 20370290.0 Ops/sec |
custom startsWith | 7737783.0 Ops/sec |
indexOf | 1414116000.0 Ops/sec |
substring | 1420688000.0 Ops/sec |
custom startsWith2 | 7656563.0 Ops/sec |