| 710 | } |
| 711 | |
| 712 | void CompileByteMap(benchmark::State& state, const std::string& regexp) { |
| 713 | Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); |
| 714 | CHECK(re); |
| 715 | Prog* prog = re->CompileToProg(0); |
| 716 | CHECK(prog); |
| 717 | for (auto _ : state) { |
| 718 | prog->ComputeByteMap(); |
| 719 | } |
| 720 | delete prog; |
| 721 | re->Decref(); |
| 722 | } |
| 723 | |
| 724 | void CompilePCRE(benchmark::State& state, const std::string& regexp) { |
| 725 | for (auto _ : state) { |
nothing calls this directly
no test coverage detected