[libcxx-commits] [libcxx] [llvm] Update Google Benchmark to v1.9.5 (PR #198964)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat May 23 17:20:13 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- libcxx/test/benchmarks/algorithms/min_max_element.bench.cpp libcxx/test/benchmarks/containers/deque_iterator.bench.cpp libcxx/test/benchmarks/join_view.bench.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/benchmarks/algorithms/min_max_element.bench.cpp b/libcxx/test/benchmarks/algorithms/min_max_element.bench.cpp
index c9eb2ef73..0beccd8f0 100644
--- a/libcxx/test/benchmarks/algorithms/min_max_element.bench.cpp
+++ b/libcxx/test/benchmarks/algorithms/min_max_element.bench.cpp
@@ -13,24 +13,25 @@
#include <benchmark/benchmark.h>
-auto run_sizes = [](benchmark::Benchmark* benchmark) {
- benchmark->Arg(1)
- ->Arg(2)
- ->Arg(3)
- ->Arg(4)
- ->Arg(64)
- ->Arg(512)
- ->Arg(1024)
- ->Arg(4000)
- ->Arg(4096)
- ->Arg(5500)
- ->Arg(64000)
- ->Arg(65536)
- ->Arg(70000);
-}
+auto run_sizes =
+ [](benchmark::Benchmark* benchmark) {
+ benchmark->Arg(1)
+ ->Arg(2)
+ ->Arg(3)
+ ->Arg(4)
+ ->Arg(64)
+ ->Arg(512)
+ ->Arg(1024)
+ ->Arg(4000)
+ ->Arg(4096)
+ ->Arg(5500)
+ ->Arg(64000)
+ ->Arg(65536)
+ ->Arg(70000);
+ }
template <class T>
-void BM_std_minmax_element(benchmark::State& state) {
+void BM_std_minmax_element(benchmark::State & state) {
std::vector<T> vec(state.range(), 3);
for (auto _ : state) {
diff --git a/libcxx/test/benchmarks/containers/deque_iterator.bench.cpp b/libcxx/test/benchmarks/containers/deque_iterator.bench.cpp
index 3faef4ab2..9a9198700 100644
--- a/libcxx/test/benchmarks/containers/deque_iterator.bench.cpp
+++ b/libcxx/test/benchmarks/containers/deque_iterator.bench.cpp
@@ -14,23 +14,24 @@
#include "benchmark/benchmark.h"
namespace {
-auto run_sizes = [](benchmark::Benchmark* benchmark) {
- benchmark->Arg(0)
- ->Arg(1)
- ->Arg(2)
- ->Arg(64)
- ->Arg(512)
- ->Arg(1024)
- ->Arg(4000)
- ->Arg(4096)
- ->Arg(5500)
- ->Arg(64000)
- ->Arg(65536)
- ->Arg(70000);
-}
+auto run_sizes =
+ [](benchmark::Benchmark* benchmark) {
+ benchmark->Arg(0)
+ ->Arg(1)
+ ->Arg(2)
+ ->Arg(64)
+ ->Arg(512)
+ ->Arg(1024)
+ ->Arg(4000)
+ ->Arg(4096)
+ ->Arg(5500)
+ ->Arg(64000)
+ ->Arg(65536)
+ ->Arg(70000);
+ }
template <class FromContainer, class ToContainer, class Func>
-void benchmark_containers(benchmark::State& state, FromContainer& d, ToContainer& v, Func&& func) {
+void benchmark_containers(benchmark::State & state, FromContainer& d, ToContainer& v, Func&& func) {
for (auto _ : state) {
benchmark::DoNotOptimize(v);
benchmark::DoNotOptimize(d);
``````````
</details>
https://github.com/llvm/llvm-project/pull/198964
More information about the libcxx-commits
mailing list