From 9233ece0e516d58682517a5a633eee146d243c3d Mon Sep 17 00:00:00 2001 From: davidwendt Date: Fri, 5 Mar 2021 16:00:45 -0500 Subject: [PATCH] add medium-sized pattern --- cpp/benchmarks/string/extract_benchmark.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cpp/benchmarks/string/extract_benchmark.cpp b/cpp/benchmarks/string/extract_benchmark.cpp index 9d78a4951ee..dbae18dde3b 100644 --- a/cpp/benchmarks/string/extract_benchmark.cpp +++ b/cpp/benchmarks/string/extract_benchmark.cpp @@ -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) { @@ -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)