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

Function CompileRegexp

extern/re2/re2/testing/regexp_benchmark.cc:690–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690void CompileRegexp(benchmark::State& state, const std::string& regexp) {
691 for (auto _ : state) {
692 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
693 CHECK(re);
694 Prog* prog = re->CompileToProg(0);
695 CHECK(prog);
696 delete prog;
697 re->Decref();
698 }
699}
700
701void CompileToProg(benchmark::State& state, const std::string& regexp) {
702 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.85
CompileToProgMethod · 0.80
DecrefMethod · 0.45

Tested by

no test coverage detected