[FR] New "benchstat" output format

Abierto
#2,397 4 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@DenysZm ya está trabajando en esto.

Desde el 24/11/2026.

  • #2402 de @DenysZm — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

This new compact format is going to help compare HLO A/B benchmarks in OpenXLA. The issue with the current format that it's horizontal output requires a very wide screen to fit all stats, if we're going to display and compare more than just wall time and CPU time. For example, for our case other useful metrics are allocations per operation(loop) and peak allocation by a benchmark.

We propose to add a Go's benchstat-like output format, which summarizes A/B tests output and prints these summaries vertically (described here: https://pkg.go.dev/golang.org/x/perf/cmd/benchstat)

An alternative is to add these new metrics stats as new columns to existing output, but this will make output hard to read or require a very wide screen.

Below are files for comparing our typical A/B workflows output(default format is unchanged, while additional metrics are added in benchstat mode):
hlo_compare_default_format.txt
hlo_compare_benchstat_format.txt

I already have a draft patch, which implements this mode.

Lenguaje dominante
C++
Estrellas
10.5k
Forks
1.8k
Merge medio
2 d 1 h
PR fusionados (30 d)
28

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 google/benchmark

Todos los issues de google/benchmark

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.