How to output benchmark custom meta data correctly

Abierto
#2,886 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
cpp
Área
testing-qa

Línea de trabajo

Empieza revisando la salida XML existente de Catch2 para los resultados de benchmarks y las secciones INFO/WARN descritas en el issue. Compara los mecanismos de reporting o personalización disponibles con la estructura CustomData solicitada y determina si el resultado debería ser una nueva funcionalidad o una buena práctica documentada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
C++
Estrellas
21.6k
Forks
3.4k
Merge medio
3 d 12 h
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de catchorg/Catch2

Todos los issues de catchorg/Catch2

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.