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

Function SearchAltMatch

extern/re2/re2/testing/regexp_benchmark.cc:391–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389// Note that OnePass doesn't implement it!
390
391void SearchAltMatch(benchmark::State& state, SearchImpl* search) {
392 std::string s = RandomText(state.range(0));
393 search(state, "\\C*", s, Prog::kAnchored, true);
394 state.SetBytesProcessed(state.iterations() * state.range(0));
395}
396
397void Search_AltMatch_DFA(benchmark::State& state) { SearchAltMatch(state, SearchDFA); }
398void Search_AltMatch_NFA(benchmark::State& state) { SearchAltMatch(state, SearchNFA); }

Callers 12

Search_AltMatch_DFAFunction · 0.85
Search_AltMatch_NFAFunction · 0.85
Search_AltMatch_OnePassFunction · 0.85
Search_AltMatch_BitStateFunction · 0.85
Search_AltMatch_PCREFunction · 0.85
Search_AltMatch_RE2Function · 0.85

Calls 5

RandomTextFunction · 0.85
rangeMethod · 0.80
SetBytesProcessedMethod · 0.80
iterationsMethod · 0.80
searchFunction · 0.50

Tested by

no test coverage detected