| 1481 | BENCHMARK(ASCIIMatchRE2)->ThreadRange(1, NumCPUs()); |
| 1482 | |
| 1483 | void FullMatchPCRE(benchmark::State& state, const char *regexp) { |
| 1484 | std::string s = RandomText(state.range(0)); |
| 1485 | s += "ABCDEFGHIJ"; |
| 1486 | PCRE re(regexp); |
| 1487 | for (auto _ : state) { |
| 1488 | CHECK(PCRE::FullMatch(s, re)); |
| 1489 | } |
| 1490 | state.SetBytesProcessed(state.iterations() * state.range(0)); |
| 1491 | } |
| 1492 | |
| 1493 | void FullMatchRE2(benchmark::State& state, const char *regexp) { |
| 1494 | std::string s = RandomText(state.range(0)); |
no test coverage detected