| 625 | // Benchmark: Parse1SplitHard, big text, big match. |
| 626 | |
| 627 | void Parse1SplitBig2(benchmark::State& state, |
| 628 | void (*run)(benchmark::State&, const char*, |
| 629 | const StringPiece&)) { |
| 630 | std::string s; |
| 631 | s.append("650-253-"); |
| 632 | s.append(100000, '0'); |
| 633 | run(state, "[0-9]+.(.*)", s); |
| 634 | state.SetItemsProcessed(state.iterations()); |
| 635 | } |
| 636 | |
| 637 | void Parse_CachedSplitBig2_PCRE(benchmark::State& state) { Parse1SplitBig2(state, SearchParse1CachedPCRE); } |
| 638 | void Parse_CachedSplitBig2_RE2(benchmark::State& state) { Parse1SplitBig2(state, SearchParse1CachedRE2); } |
no test coverage detected