replace regex global vs replaceAll with string vs replaceAll with regex| Test case name | Result |
|---|---|
| replace regex global | |
| replaceAll with string | |
| replaceAll with regex |
| Test name | Executions per second |
|---|---|
| ✓ replace regex global | 22,966,038 Ops/sec |
| replaceAll with string | 17,454,968 Ops/sec |
| replaceAll with regex | 15,848,015 Ops/sec |