-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[libc++] Add documentation for the new comment-triggered benchmarking bot #158167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc++] Add documentation for the new comment-triggered benchmarking bot #158167
Conversation
@llvm/pr-subscribers-libcxx Author: Louis Dionne (ldionne) ChangesThe new benchmarking bot is experimental and is very rough on the edges. Full diff: https://github.com/llvm/llvm-project/pull/158167.diff 1 Files Affected:
diff --git a/libcxx/docs/TestingLibcxx.rst b/libcxx/docs/TestingLibcxx.rst
index 44463385b81a7..227791031bab0 100644
--- a/libcxx/docs/TestingLibcxx.rst
+++ b/libcxx/docs/TestingLibcxx.rst
@@ -531,6 +531,16 @@ Finally, use ``compare-benchmarks`` to compare both:
The ``compare-benchmarks`` script provides some useful options like creating a chart to easily visualize
differences in a browser window. Use ``compare-benchmarks --help`` for details.
+Additionally, adding a comment of the following form to a libc++ PR will cause the specified benchmarks to be run
+on our pre-commit CI infrastructure and the results to be reported in the PR by our CI system:
+
+.. code-block::
+
+ /libcxx-bot benchmark <path/to/benchmark1.bench.cpp> <path/to/benchmark2.bench.cpp> ...
+
+Note that this is currently experimental and the results should not be relied upon too strongly, since
+we do not have dedicated hardware to run the benchmarks on.
+
.. _`Google Benchmark`: https://github.com/google/benchmark
.. _testing-hardening-assertions:
|
/libcxx-bot benchmark libcxx/test/benchmarks/containers/sequence/vector.bench.cpp Benchmark results:
|
Let's hope it works like it did during my testing :) CI job running the benchmarks: https://github.com/llvm/llvm-project/actions/runs/17660356184/job/50192377946 |
7482317
to
def5b8d
Compare
Another try (https://github.com/llvm/llvm-project/actions/runs/17660748509) /libcxx-bot benchmark libcxx/test/benchmarks/join_view.bench.cpp libcxx/test/benchmarks/hash.bench.cpp Benchmark results:
Benchmark results:
|
/libcxx-bot benchmark libcxx/test/benchmarks |
… bot (llvm#158167) The new benchmarking bot is experimental and is very rough on the edges.
… bot (llvm#158167) The new benchmarking bot is experimental and is very rough on the edges.
The new benchmarking bot is experimental and is very rough on the edges.