RegEx.test vs String.includes vs String.match vs String.replace vs String.replace classic| Test case name | Result |
|---|---|
| RegEx.test | |
| String.includes | |
| String.match | |
| String.replace | |
| String.replace classic |
| Test name | Executions per second |
|---|---|
| ✓ String.includes | 16,879,302 Ops/sec |
| String.replace classic | 9,062,069 Ops/sec |
| RegEx.test | 5,425,184 Ops/sec |
| String.match | 3,475,077 Ops/sec |
| String.replace | 1,453,697 Ops/sec |