How to output benchmark custom meta data correctly
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- testing-qa
调研方向
首先查看 Catch2 现有的基准测试结果 XML 输出,以及 issue 中描述的 INFO/WARN 部分。将可用的 reporting 或自定义机制与所请求的 CustomData 结构进行比较,并确定结果应当是一项新功能,还是一项有文档说明的最佳实践。
由索引模型根据 Issue 内容生成。
描述
We want to use Catch2 benchmark for performance regression tests. Therefore we output the data as xml and store it in a database that we can compare the performance over different commits. For comparison reason, we need to store meta data, such like which compiler and which CPU was used and so one.
If we use std::cout, we get a single xml region, which contains all the output and we need to parse the content by our self to split up the different information.
<StdOut>
First output
Second output
second line of the second output
third output
</StdOut>
INFO, WARN and so one is similar. It has the advantage, that each output become it's own xml region, but there is still no difference between the xml region. Each INFO creates the same <Info> xml region and we need to search for an identifier in the content of the xml region to get the right information such like which compiler version.
In the best case, Catch2 provides a mechanism, which produces the following kind of xml output:
<CustomData>
<CompilerVersion>GCC 11.4</CompilerVersion>
<CPUName>AMD EPYC 7452 32-Core Processor</CPUName>
</CustomData>
Is there a feature in Catch2 to achieve it and if not, what is the best practice to get something similar?
- 主要语言
- C++
- 星标
- 21.6k
- 派生
- 3.4k
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
catchorg/Catch2 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 2 天内回复
-
catch_discover_tests passes all EXTRA_ARGS as one argument可能已有人在做 @CyberKun 于 11 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
catchorg/Catch2#3239 · 1 条评论 ·
维护者通常 2 天内回复
-
Not seeing some error messages from fakeit in jetbrains rider可能已有人在做 @Amanpal9 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
catchorg/Catch2#3228 · 1 条评论 ·
维护者通常 2 天内回复
-
catch_discover_tests fails for Emscripten/WASM tests since v3.16.0可能已有人在做 @nafiurahman00 于 8 天前认领。 未关闭Extras
难度 3/5 1-2 天 新手友好度 72/100
catchorg/Catch2#3241 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
cp-algorithms/cp-algorithms#1774 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
telefonicaid/fiware-orion#4836 ·
维护者通常 1 天内回复
-
nixd exits at startup when its parent process belongs to another user可能已有人在做 @conao3 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
nix-community/nixd#930 ·
维护者通常 2 天内回复
-
refactor topic-ui topic-weather
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Command-Install Needs-Triage
难度 2/5 1-3 小时 新手友好度 79/100
microsoft/winget-cli#6718 ·
维护者通常 2 天内回复