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

Function Parse3CachedNFA

extern/re2/re2/testing/regexp_benchmark.cc:1138–1146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136}
1137
1138void Parse3CachedNFA(benchmark::State& state, const char* regexp,
1139 const StringPiece& text) {
1140 Prog* prog = GetCachedProg(regexp);
1141 StringPiece sp[4]; // 4 because sp[0] is whole match.
1142 for (auto _ : state) {
1143 CHECK(prog->SearchNFA(text, StringPiece(), Prog::kAnchored,
1144 Prog::kFullMatch, sp, 4));
1145 }
1146}
1147
1148void Parse3CachedOnePass(benchmark::State& state, const char* regexp,
1149 const StringPiece& text) {

Callers

nothing calls this directly

Calls 3

GetCachedProgFunction · 0.85
StringPieceClass · 0.85
SearchNFAMethod · 0.80

Tested by

no test coverage detected