Skip to content

Commit

Permalink
Bugfix 1615: Fix segfault in benchmark_clause.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
alexowens90 committed Jun 11, 2024
1 parent 911a55c commit e9a3d5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/arcticdb/processing/test/benchmark_clause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void BM_hash_grouping_int(benchmark::State& state) {
constexpr auto data_type = data_type_from_raw_type<integer>();
Column column(make_scalar_type(data_type), num_rows, true, false);
memcpy(column.ptr(), data.data(), num_rows * sizeof(integer));
column.set_row_data(num_rows - 1);
ColumnWithStrings col_with_strings(std::move(column), {}, "random_ints");

grouping::HashingGroupers::Grouper<ScalarTagType<DataTypeTag<data_type>>> grouper;
Expand Down Expand Up @@ -170,8 +171,8 @@ void BM_hash_grouping_string(benchmark::State& state) {
BENCHMARK(BM_merge_interleaved)->Args({10'000, 100});
BENCHMARK(BM_merge_ordered)->Args({10'000, 100});

BENCHMARK(BM_hash_grouping_int<int8_t>)->Args({100'000, 10, 2})->Args({100'000, 100'000, 2});
BENCHMARK(BM_hash_grouping_int<int16_t>)->Args({100'000, 10, 2})->Args({100'000, 100'000, 2});
BENCHMARK(BM_hash_grouping_int<int8_t>)->Args({100'000, 10, 2});
BENCHMARK(BM_hash_grouping_int<int16_t>)->Args({100'000, 10, 2})->Args({100'000, 10'000, 2});
BENCHMARK(BM_hash_grouping_int<int32_t>)->Args({100'000, 10, 2})->Args({100'000, 100'000, 2});
BENCHMARK(BM_hash_grouping_int<int64_t>)->Args({100'000, 10, 2})->Args({100'000, 100'000, 2});

Expand Down

0 comments on commit e9a3d5d

Please sign in to comment.