| 729 | } |
| 730 | |
| 731 | void CompileRE2(benchmark::State& state, const std::string& regexp) { |
| 732 | for (auto _ : state) { |
| 733 | RE2 re(regexp); |
| 734 | CHECK_EQ(re.error(), ""); |
| 735 | } |
| 736 | } |
| 737 | |
| 738 | void RunBuild(benchmark::State& state, const std::string& regexp, |
| 739 | void (*run)(benchmark::State&, const std::string&)) { |