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

Function Parse1SplitBig1

extern/re2/re2/testing/regexp_benchmark.cc:607–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605// Benchmark: Parse1SplitHard, big text, small match.
606
607void Parse1SplitBig1(benchmark::State& state,
608 void (*run)(benchmark::State&, const char*,
609 const StringPiece&)) {
610 std::string s;
611 s.append(100000, 'x');
612 s.append("650-253-0001");
613 run(state, "[0-9]+.(.*)", s);
614 state.SetItemsProcessed(state.iterations());
615}
616
617void Parse_CachedSplitBig1_PCRE(benchmark::State& state) { Parse1SplitBig1(state, SearchParse1CachedPCRE); }
618void Parse_CachedSplitBig1_RE2(benchmark::State& state) { Parse1SplitBig1(state, SearchParse1CachedRE2); }

Callers 2

Calls 4

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

Tested by

no test coverage detected