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

Function Parse1CachedBacktrack

extern/re2/re2/testing/regexp_benchmark.cc:1293–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291}
1292
1293void Parse1CachedBacktrack(benchmark::State& state, const char* regexp,
1294 const StringPiece& text) {
1295 Prog* prog = GetCachedProg(regexp);
1296 StringPiece sp[2]; // 2 because sp[0] is whole match.
1297 for (auto _ : state) {
1298 CHECK(prog->UnsafeSearchBacktrack(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1299 }
1300}
1301
1302void Parse1CachedPCRE(benchmark::State& state, const char* regexp,
1303 const StringPiece& text) {

Callers

nothing calls this directly

Calls 2

GetCachedProgFunction · 0.85
UnsafeSearchBacktrackMethod · 0.80

Tested by

no test coverage detected