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

Function Parse1SplitBig2

extern/re2/re2/testing/regexp_benchmark.cc:627–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625// Benchmark: Parse1SplitHard, big text, big match.
626
627void Parse1SplitBig2(benchmark::State& state,
628 void (*run)(benchmark::State&, const char*,
629 const StringPiece&)) {
630 std::string s;
631 s.append("650-253-");
632 s.append(100000, '0');
633 run(state, "[0-9]+.(.*)", s);
634 state.SetItemsProcessed(state.iterations());
635}
636
637void Parse_CachedSplitBig2_PCRE(benchmark::State& state) { Parse1SplitBig2(state, SearchParse1CachedPCRE); }
638void Parse_CachedSplitBig2_RE2(benchmark::State& state) { Parse1SplitBig2(state, SearchParse1CachedRE2); }

Callers 2

Calls 4

SetItemsProcessedMethod · 0.80
iterationsMethod · 0.80
runFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected