[libcxx-commits] [libcxx] [libc++] Save benchmark results in a json file (PR #119761)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 12 13:18:15 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 6a9279ca407132eec848eb5c55c2222ce605df81...162028f16a9ae44c8b841c73f6a761b3236101c7 libcxx/utils/libcxx/test/format.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- format.py	2024-12-12 21:12:48.000000 +0000
+++ format.py	2024-12-12 21:17:46.352449 +0000
@@ -346,11 +346,13 @@
                 )
             steps = [
                 "%dbg(COMPILED WITH) %{cxx} %s %{flags} %{compile_flags} %{benchmark_flags} %{link_flags} -o %t.exe",
             ]
             if "enable-benchmarks=run" in test.config.available_features:
-                steps += ["%dbg(EXECUTED AS) %{exec} %t.exe --benchmark_out=%T/benchmark-result.json --benchmark_out_format=json"]
+                steps += [
+                    "%dbg(EXECUTED AS) %{exec} %t.exe --benchmark_out=%T/benchmark-result.json --benchmark_out_format=json"
+                ]
             return self._executeShTest(test, litConfig, steps)
         else:
             return lit.Test.Result(
                 lit.Test.UNRESOLVED, "Unknown test suffix for '{}'".format(filename)
             )

``````````

</details>


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


More information about the libcxx-commits mailing list