MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / Parse1SplitHard

Function Parse1SplitHard

extern/re2/re2/testing/regexp_benchmark.cc:572–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570// Benchmark: splitting off leading number field but harder (ambiguous regexp).
571
572void 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
579void Parse_SplitHard_NFA(benchmark::State& state) { Parse1SplitHard(state, Parse1NFA); }
580void Parse_SplitHard_PCRE(benchmark::State& state) { Parse1SplitHard(state, Parse1PCRE); }

Callers 9

Parse_SplitHard_NFAFunction · 0.85
Parse_SplitHard_PCREFunction · 0.85
Parse_SplitHard_RE2Function · 0.85
Parse_SplitHard_BitStateFunction · 0.85

Calls 3

SetItemsProcessedMethod · 0.80
iterationsMethod · 0.80
runFunction · 0.50

Tested by

no test coverage detected