| 570 | // Benchmark: splitting off leading number field but harder (ambiguous regexp). |
| 571 | |
| 572 | void Parse1SplitHard(benchmark::State& state, |
| 573 | void (*run)(benchmark::State&, const char*, |
| 574 | const StringPiece&)) { |
| 575 | run(state, "[0-9]+.(.*)", "650-253-0001"); |
| 576 | state.SetItemsProcessed(state.iterations()); |
| 577 | } |
| 578 | |
| 579 | void Parse_SplitHard_NFA(benchmark::State& state) { Parse1SplitHard(state, Parse1NFA); } |
| 580 | void Parse_SplitHard_PCRE(benchmark::State& state) { Parse1SplitHard(state, Parse1PCRE); } |
no test coverage detected