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

Function Parse1Split

extern/re2/re2/testing/regexp_benchmark.cc:535–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533// Benchmark: splitting off leading number field.
534
535void Parse1Split(benchmark::State& state,
536 void (*parse1)(benchmark::State&, const char*,
537 const StringPiece&)) {
538 parse1(state, "[0-9]+-(.*)", "650-253-0001");
539 state.SetItemsProcessed(state.iterations());
540}
541
542void Parse_Split_NFA(benchmark::State& state) { Parse1Split(state, Parse1NFA); }
543void Parse_Split_OnePass(benchmark::State& state) { Parse1Split(state, Parse1OnePass); }

Callers 10

Parse_Split_NFAFunction · 0.85
Parse_Split_OnePassFunction · 0.85
Parse_Split_PCREFunction · 0.85
Parse_Split_RE2Function · 0.85
Parse_Split_BitStateFunction · 0.85
Parse_CachedSplit_NFAFunction · 0.85
Parse_CachedSplit_PCREFunction · 0.85
Parse_CachedSplit_RE2Function · 0.85

Calls 2

SetItemsProcessedMethod · 0.80
iterationsMethod · 0.80

Tested by

no test coverage detected