This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/main by this push:
new ab4af8a20c docs: keep new benchmarks with performance changes (#12406)
ab4af8a20c is described below
commit ab4af8a20c7304b23f7157c665140407c3369621
Author: RIchard Baah <[email protected]>
AuthorDate: Mon Nov 23 05:07:39 2026 +0000
docs: keep new benchmarks with performance changes (#12406)
# Which issue does this PR close?
- N/A, independent change.
# Rationale for this change
As discussed in
[#11527](https://github.com/apache/arrow-rs/pull/11527#issuecomment-7082763437),
a separate benchmark PR adds review, merge, and rebase churn when the
benchmark runner can use an earlier commit from the implementation PR as
its baseline.
# What changes are included in this PR?
The contributor guide now recommends adding new benchmarks as the first
commit of the performance PR. The pull request template points
contributors to the same workflow.
# Are these changes tested?
Documentation only. The updated text is covered by the repository's
spelling check.
# Are there any significant user-facing changes?
yes, updated docs
---
.github/pull_request_template.md | 4 ++++
AGENTS.md | 2 ++
CONTRIBUTING.md | 4 +---
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 4318ba1285..38a0fe8fd9 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -48,6 +48,10 @@ covered by existing tests, if so identify these tests)?
If this PR claims a performance improvement, please include evidence such as
benchmark results.
+If new benchmarks are needed, add them as the first commit of this PR so the
+benchmark runner can use that commit as the baseline. See the performance
+guidance in CONTRIBUTING.md.
+
DO NOT simply paste a list of commands ran to verify the code; this is what our
CI is for and it pollutes the PR. ONLY explain if testing was included with
this
PR, or why it wasn't.
diff --git a/AGENTS.md b/AGENTS.md
index e95e8a8687..58f18cde57 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -62,6 +62,8 @@ Prefer safe code. Use `unsafe` only when a benchmark shows a
gain over the safe
A performance PR needs benchmarks that show why the change is faster. Name the
benchmark(s) the change targets. Say which part of the change produces the
gain, and cover both well-predicted input (constant lengths, all valid) and
poorly predicted input (random). Name the inputs that get slower. Prefer the
smallest change that keeps the gain, and do not add code tuned to the
benchmark's data. See [benchmarks](CONTRIBUTING.md#performance-improvements).
+If new benchmarks are needed, add them as the first commit of the PR and pass
that commit's SHA as `baseline.ref` to the automated benchmark runner.
+
## Issue Ownership
The following agent-specific rules are stricter than the general contribution
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 92e100fdc1..d5ab5962d2 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -336,7 +336,7 @@ If your PR proposes a performance improvement, include a
summary of the benchmar
A benchmark that improves is not enough on its own. State which part of the
change produces the gain, for example by removing it and rerunning. Cover both
well-predicted input (constant lengths, all valid) and poorly predicted input
(random), because branchless code wins on the second and can lose on the first.
Name the inputs that get slower and say whether real workloads are likely to
hit them.
-If you need to add new benchmarks to cover your change, add them in a separate
PR first (for example, [#9729]) or as the first commit of your PR. Either way,
the automated benchmark runner can compare the change against a revision that
already has the benchmarks. For a first commit, pass its SHA as the baseline:
+If you need to add new benchmarks to cover your change, add them as the first
commit of the same PR. This lets reviewers see the benchmark and implementation
together without requiring a separate benchmark PR. The automated benchmark
runner can compare the implementation against the first commit by passing its
SHA as the baseline:
```yaml
run benchmark <bench>
@@ -344,8 +344,6 @@ baseline:
ref: <benchmark commit SHA>
```
-[#9729]: https://github.com/apache/arrow-rs/pull/9729
-
## AI Generated Submissions
This project follows the guidance for AI generated submissions used by the