Test case name | Result |
---|---|
substring | |
replace inline regex | |
replace compiled regex var | |
slice |
Test name | Executions per second |
---|---|
substring | 13371060.0 Ops/sec |
replace inline regex | 9942207.0 Ops/sec |
replace compiled regex var | 9992422.0 Ops/sec |
slice | 13416653.0 Ops/sec |