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

Function Parse3CachedBitState

extern/re2/re2/testing/regexp_benchmark.cc:1158–1166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156}
1157
1158void Parse3CachedBitState(benchmark::State& state, const char* regexp,
1159 const StringPiece& text) {
1160 Prog* prog = GetCachedProg(regexp);
1161 CHECK(prog->CanBitState());
1162 StringPiece sp[4]; // 4 because sp[0] is whole match.
1163 for (auto _ : state) {
1164 CHECK(prog->SearchBitState(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1165 }
1166}
1167
1168void Parse3CachedBacktrack(benchmark::State& state, const char* regexp,
1169 const StringPiece& text) {

Callers

nothing calls this directly

Calls 3

GetCachedProgFunction · 0.85
CanBitStateMethod · 0.80
SearchBitStateMethod · 0.80

Tested by

no test coverage detected