| 533 | // Benchmark: splitting off leading number field. |
| 534 | |
| 535 | void Parse1Split(benchmark::State& state, |
| 536 | void (*parse1)(benchmark::State&, const char*, |
| 537 | const StringPiece&)) { |
| 538 | parse1(state, "[0-9]+-(.*)", "650-253-0001"); |
| 539 | state.SetItemsProcessed(state.iterations()); |
| 540 | } |
| 541 | |
| 542 | void Parse_Split_NFA(benchmark::State& state) { Parse1Split(state, Parse1NFA); } |
| 543 | void Parse_Split_OnePass(benchmark::State& state) { Parse1Split(state, Parse1OnePass); } |
no test coverage detected