Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev/archery/archery/benchmark/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def results(self, repetitions=1, repetition_min_time=None):
"--benchmark_out_format=json"]

if repetition_min_time is not None:
argv.append(f"--benchmark_min_time={repetition_min_time:.6f}")
argv.append(f"--benchmark_min_time={repetition_min_time:.6f}s")

@austin3dickey austin3dickey Apr 9, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was to suppress a message I saw in the logs:

LOG(0): Value passed to --benchmark_min_time should have a suffix. Eg., `30s` for 30-seconds.

It's already documented that this value should be seconds:

help=("Minimum duration of each repetition in seconds. "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's a change in the Google benchmark CLI.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this might not work on old versions of Google benchmark, so it's worth being careful.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the warning was added with the flag itself https://github.com/google/benchmark/blame/70916cbf71f50b9e1e6f13559e10d6dbb92beb32/src/benchmark_runner.cc#L199 so this isn't an issue after all


if self.benchmark_filter:
argv.append(f"--benchmark_filter={self.benchmark_filter}")
Expand Down
3 changes: 3 additions & 0 deletions dev/conbench_envs/benchmarks.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

CMAKE_BUILD_TYPE=release
ARROW_BUILD_TESTS=OFF
ARROW_BUILD_BENCHMARKS=ON
ARROW_BUILD_BENCHMARKS_REFERENCE=OFF
ARROW_BUILD_TYPE=release
ARROW_DEPENDENCY_SOURCE=AUTO
ARROW_DATASET=ON
Expand All @@ -27,6 +29,7 @@ ARROW_GANDIVA=OFF
ARROW_HDFS=ON
ARROW_HOME=$CONDA_PREFIX
ARROW_INSTALL_NAME_RPATH=ON
ARROW_JEMALLOC=OFF

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This used to be set here but I think it belongs in this file instead.

ARROW_MIMALLOC=ON
ARROW_NO_DEPRECATED_API=ON
ARROW_ORC=ON
Expand Down
3 changes: 2 additions & 1 deletion dev/conbench_envs/hooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ set_arrow_build_and_run_env_vars() {
}

build_arrow_cpp() {
export ARROW_BUILD_DIR="/tmp/$(uuidgen)"
# Ignore the error when a cache can't be created
if ! ci/scripts/cpp_build.sh $(pwd) $(pwd) 2> error.log; then
if ! ci/scripts/cpp_build.sh $(pwd) $ARROW_BUILD_DIR 2> error.log; then
if ! grep -q -F "Can\'t create temporary cache file" error.log; then
cat error.log
fi
Expand Down