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

Function Parse1CachedNFA

extern/re2/re2/testing/regexp_benchmark.cc:1263–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263void Parse1CachedNFA(benchmark::State& state, const char* regexp,
1264 const StringPiece& text) {
1265 Prog* prog = GetCachedProg(regexp);
1266 StringPiece sp[2]; // 2 because sp[0] is whole match.
1267 for (auto _ : state) {
1268 CHECK(prog->SearchNFA(text, StringPiece(), Prog::kAnchored,
1269 Prog::kFullMatch, sp, 2));
1270 }
1271}
1272
1273void Parse1CachedOnePass(benchmark::State& state, const char* regexp,
1274 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