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

Function CompileByteMap

extern/re2/re2/testing/regexp_benchmark.cc:712–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712void CompileByteMap(benchmark::State& state, const std::string& regexp) {
713 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
714 CHECK(re);
715 Prog* prog = re->CompileToProg(0);
716 CHECK(prog);
717 for (auto _ : state) {
718 prog->ComputeByteMap();
719 }
720 delete prog;
721 re->Decref();
722}
723
724void CompilePCRE(benchmark::State& state, const std::string& regexp) {
725 for (auto _ : state) {

Callers

nothing calls this directly

Calls 4

ParseFunction · 0.85
CompileToProgMethod · 0.80
ComputeByteMapMethod · 0.80
DecrefMethod · 0.45

Tested by

no test coverage detected