How to output benchmark custom meta data correctly

Đang mở
#2,886 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
testing-qa

Hướng nghiên cứu

Bắt đầu bằng cách xem xét đầu ra XML hiện có của Catch2 cho các kết quả benchmark và các phần INFO/WARN được mô tả trong issue. So sánh các cơ chế reporting hoặc tùy chỉnh hiện có với cấu trúc CustomData được yêu cầu, và xác định liệu kết quả nên là một tính năng mới hay một best practice được tài liệu hóa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Feature Request

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?

Ngôn ngữ chính
C++
Star
21.6k
Fork
3.4k
Merge trung bình
3 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của catchorg/Catch2

Tất cả issue của catchorg/Catch2

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.