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

Function Search

extern/re2/re2/testing/regexp_benchmark.cc:178–182  ·  view source on GitHub ↗

Makes text of size nbytes, then calls run to search the text for regexp iters times.

Source from the content-addressed store, hash-verified

176// Makes text of size nbytes, then calls run to search
177// the text for regexp iters times.
178void Search(benchmark::State& state, const char* regexp, SearchImpl* search) {
179 std::string s = RandomText(state.range(0));
180 search(state, regexp, s, Prog::kUnanchored, false);
181 state.SetBytesProcessed(state.iterations() * state.range(0));
182}
183
184// These two are easy because they start with an A,
185// giving the search loop something to memchr for.

Callers 15

Search_Easy0_CachedDFAFunction · 0.85
Search_Easy0_CachedNFAFunction · 0.85
Search_Easy0_CachedPCREFunction · 0.85
Search_Easy0_CachedRE2Function · 0.85
Search_Easy1_CachedDFAFunction · 0.85
Search_Easy1_CachedNFAFunction · 0.85
Search_Easy1_CachedPCREFunction · 0.85
Search_Easy1_CachedRE2Function · 0.85
Search_Medium_CachedDFAFunction · 0.85
Search_Medium_CachedNFAFunction · 0.85
Search_Medium_CachedPCREFunction · 0.85
Search_Medium_CachedRE2Function · 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