Skip to content

Commit

Permalink
add medium-sized pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Mar 5, 2021
1 parent 6bc8c03 commit 9233ece
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpp/benchmarks/string/extract_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void BM_extract(benchmark::State& state, int re_instructions)
cudf::strings_column_view input(table->view().column(0));
std::string const raw_pattern =
"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234"
"5678901234567890";
"5678901234567890123456789012345678901234567890";
std::string const pattern = "(" + raw_pattern.substr(0, re_instructions) + ")";

for (auto _ : state) {
Expand Down Expand Up @@ -70,5 +70,6 @@ static void generate_bench_args(benchmark::internal::Benchmark* b)
->UseManualTime() \
->Unit(benchmark::kMillisecond);

STRINGS_BENCHMARK_DEFINE(extract, 4)
STRINGS_BENCHMARK_DEFINE(extract_long, 110)
STRINGS_BENCHMARK_DEFINE(small, 4)
STRINGS_BENCHMARK_DEFINE(medium, 48)
STRINGS_BENCHMARK_DEFINE(large, 128)

0 comments on commit 9233ece

Please sign in to comment.