[libcxx-commits] [libcxx] [libc++] Add scripts to run benchmarks and submit to LNT on a regular basis (PR #180849)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 11 03:36:15 PST 2026


================
@@ -0,0 +1,29 @@
+This directory contains utilities for continuous benchmarking of libc++ with LNT.
+This can be done locally using a local instance, or using a public instance like http://lnt.llvm.org.
+
+Example for running locally:
+
+```
+# Create an instance and run a server
+lnt create my-instance
+echo "api_auth_token = 'example_token'" >> my-instance/lnt.cfg
+lnt runserver my-instance
+
+# In another terminal, create the libcxx test suite on the locally-running server
+cat <<EOF > lnt-admin-config.yaml
+lnt_url: "http://localhost:8000"
+database: default
+auth_token: example_token
+EOF
+lnt admin --config lnt-admin-config.yaml --testsuite libcxx test-suite add libcxx/utils/ci/lnt/schema.yaml
+
+# Then, watch for libc++ commits and submit benchmark results to the locally-running instance
+libcxx/utils/ci/lnt/commit-watch --machine my-laptop --test-suite libcxx --lnt-url http://localhost:8000 -- \
+    libcxx/utils/ci/lnt/run-benchmarks                                                                      \
+    --test-suite-commit abcdef09                                                                            \
+    --lnt-url http://localhost:8000                                                                         \
+    --machine my-laptop                                                                                     \
+    --test-suite libcxx                                                                                     \
+    --compiler clang++                                                                                      \
+    --benchmark-commit
----------------
philnik777 wrote:

It feels a bit weird that you have to pass the same arguments multiple times here, but I guess it's fine - at least for now.

https://github.com/llvm/llvm-project/pull/180849


More information about the libcxx-commits mailing list