Skip to content

Commit

Permalink
ARROW-11490: [C++] BM_ArrowBinaryDict/EncodeLowLevel is not determini…
Browse files Browse the repository at this point in the history
…stic

Clearing out previous values before generating new data.  This will allow the benchmark to be more consistent when run with benchmark_repetitions

Closes #9411 from westonpace/bugfix/arrow-11490

Authored-by: Weston Pace <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
westonpace authored and pitrou committed Feb 8, 2021
1 parent 8abb936 commit 1c219e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/parquet/encoding_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ class BenchmarkDecodeArrow : public ::benchmark::Fixture {
void TearDown(const ::benchmark::State& state) override {
buffer_.reset();
input_array_.reset();
values_.clear();
}

void InitDataInputs() {
Expand Down

0 comments on commit 1c219e3

Please sign in to comment.