Test case name | Result |
---|---|
RegEx.test | |
String.includes | |
String.match | |
String.indexOf |
Test name | Executions per second |
---|---|
RegEx.test | 8693168.0 Ops/sec |
String.includes | 28768680.0 Ops/sec |
String.match | 6363811.5 Ops/sec |
String.indexOf | 24242802.0 Ops/sec |