Test case name | Result |
---|---|
regex | |
startsWith | |
custom startsWith | |
indexOf | |
substring | |
custom startsWith2 |
Test name | Executions per second |
---|---|
regex | 28489260.0 Ops/sec |
startsWith | 20438290.0 Ops/sec |
custom startsWith | 7628480.0 Ops/sec |
indexOf | 1390976000.0 Ops/sec |
substring | 1393272000.0 Ops/sec |
custom startsWith2 | 7382976.0 Ops/sec |