Test case name | Result |
---|---|
RegExp#test | |
String#indexOf | |
String#match | |
Preallocated RegExp#test | |
Preallocated String#match |
Test name | Executions per second |
---|---|
RegExp#test | 80133110.0 Ops/sec |
String#indexOf | 1029304000.0 Ops/sec |
String#match | 43567410.0 Ops/sec |
Preallocated RegExp#test | 20731670.0 Ops/sec |
Preallocated String#match | 15486220.0 Ops/sec |