Skip to content

Commit

Permalink
fix the benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Dec 17, 2024
1 parent 0f1d875 commit 4d3ca91
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cpp/src/arrow/compute/kernels/scalar_hash_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ static void Hash64Int64(benchmark::State& state) { // NOLINT non-const referenc
auto test_vals = hashing_rng.Int64(10000, 0, std::numeric_limits<int64_t>::max());

while (state.KeepRunning()) {
ASSERT_OK_AND_ASSIGN(Datum hash_result,
compute::CallFunction("hash_64", {test_vals}));
ASSERT_OK_AND_ASSIGN(Datum hash_result, compute::CallFunction("hash64", {test_vals}));
benchmark::DoNotOptimize(hash_result);
}

Expand All @@ -92,7 +91,7 @@ static void Hash64StructSmallStrings(

while (state.KeepRunning()) {
ASSERT_OK_AND_ASSIGN(Datum hash_result,
compute::CallFunction("hash_64", {values_array}));
compute::CallFunction("hash64", {values_array}));
benchmark::DoNotOptimize(hash_result);
}

Expand All @@ -117,7 +116,7 @@ static void Hash64StructMediumStrings(

while (state.KeepRunning()) {
ASSERT_OK_AND_ASSIGN(Datum hash_result,
compute::CallFunction("hash_64", {values_array}));
compute::CallFunction("hash64", {values_array}));
benchmark::DoNotOptimize(hash_result);
}

Expand All @@ -142,7 +141,7 @@ static void Hash64StructLargeStrings(

while (state.KeepRunning()) {
ASSERT_OK_AND_ASSIGN(Datum hash_result,
compute::CallFunction("hash_64", {values_array}));
compute::CallFunction("hash64", {values_array}));
benchmark::DoNotOptimize(hash_result);
}

Expand All @@ -165,7 +164,7 @@ static void Hash64Map(benchmark::State& state) { // NOLINT non-const reference

while (state.KeepRunning()) {
ASSERT_OK_AND_ASSIGN(Datum hash_result,
compute::CallFunction("hash_64", {test_keyvals}));
compute::CallFunction("hash64", {test_keyvals}));
benchmark::DoNotOptimize(hash_result);
}

Expand Down

0 comments on commit 4d3ca91

Please sign in to comment.