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

Function PossibleMatchRangeCommon

extern/re2/re2/testing/regexp_benchmark.cc:1527–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1525BENCHMARK_RANGE(FullMatch_DotStarCapture_CachedRE2, 8, 2<<20);
1526
1527void PossibleMatchRangeCommon(benchmark::State& state, const char* regexp) {
1528 RE2 re(regexp);
1529 std::string min;
1530 std::string max;
1531 const int kMaxLen = 16;
1532 for (auto _ : state) {
1533 CHECK(re.PossibleMatchRange(&min, &max, kMaxLen));
1534 }
1535}
1536
1537void PossibleMatchRange_Trivial(benchmark::State& state) {
1538 PossibleMatchRangeCommon(state, ".*");

Callers 4

Calls 1

PossibleMatchRangeMethod · 0.45

Tested by

no test coverage detected