replaceAll() regex vs replaceAll() string vs split() and join()| Test case name | Result |
|---|---|
| replaceAll() regex | |
| replaceAll() string | |
| split() and join() |
| Test name | Executions per second |
|---|---|
| ✓ split() and join() | 34,173 Ops/sec |
| replaceAll() string | 10,855 Ops/sec |
| replaceAll() regex | 10,740 Ops/sec |