| 654 | } |
| 655 | |
| 656 | void SimplifyRegexp(benchmark::State& state, const std::string& regexp) { |
| 657 | for (auto _ : state) { |
| 658 | Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); |
| 659 | CHECK(re); |
| 660 | Regexp* sre = re->Simplify(); |
| 661 | CHECK(sre); |
| 662 | sre->Decref(); |
| 663 | re->Decref(); |
| 664 | } |
| 665 | } |
| 666 | |
| 667 | void NullWalkRegexp(benchmark::State& state, const std::string& regexp) { |
| 668 | Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); |