| 605 | // Benchmark: Parse1SplitHard, big text, small match. |
| 606 | |
| 607 | void Parse1SplitBig1(benchmark::State& state, |
| 608 | void (*run)(benchmark::State&, const char*, |
| 609 | const StringPiece&)) { |
| 610 | std::string s; |
| 611 | s.append(100000, 'x'); |
| 612 | s.append("650-253-0001"); |
| 613 | run(state, "[0-9]+.(.*)", s); |
| 614 | state.SetItemsProcessed(state.iterations()); |
| 615 | } |
| 616 | |
| 617 | void Parse_CachedSplitBig1_PCRE(benchmark::State& state) { Parse1SplitBig1(state, SearchParse1CachedPCRE); } |
| 618 | void Parse_CachedSplitBig1_RE2(benchmark::State& state) { Parse1SplitBig1(state, SearchParse1CachedRE2); } |
no test coverage detected