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

Function Parse3CachedBacktrack

extern/re2/re2/testing/regexp_benchmark.cc:1168–1175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1166}
1167
1168void Parse3CachedBacktrack(benchmark::State& state, const char* regexp,
1169 const StringPiece& text) {
1170 Prog* prog = GetCachedProg(regexp);
1171 StringPiece sp[4]; // 4 because sp[0] is whole match.
1172 for (auto _ : state) {
1173 CHECK(prog->UnsafeSearchBacktrack(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1174 }
1175}
1176
1177void Parse3CachedPCRE(benchmark::State& state, const char* regexp,
1178 const StringPiece& text) {

Callers

nothing calls this directly

Calls 2

GetCachedProgFunction · 0.85
UnsafeSearchBacktrackMethod · 0.80

Tested by

no test coverage detected