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

Function SearchCachedNFA

extern/re2/re2/testing/regexp_benchmark.cc:999–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999void SearchCachedNFA(benchmark::State& state, const char* regexp,
1000 const StringPiece& text, Prog::Anchor anchor,
1001 bool expect_match) {
1002 Prog* prog = GetCachedProg(regexp);
1003 for (auto _ : state) {
1004 CHECK_EQ(prog->SearchNFA(text, StringPiece(), anchor, Prog::kFirstMatch,
1005 NULL, 0),
1006 expect_match);
1007 }
1008}
1009
1010void SearchCachedOnePass(benchmark::State& state, const char* regexp,
1011 const StringPiece& text, Prog::Anchor anchor,

Callers

nothing calls this directly

Calls 3

GetCachedProgFunction · 0.85
StringPieceClass · 0.85
SearchNFAMethod · 0.80

Tested by

no test coverage detected