[FR] New "benchstat" output format

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

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

@DenysZm đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #2402 của @DenysZm — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
C++
Star
10.5k
Fork
1.8k
Merge trung bình
2 ngày 1 giờ
Pull request đã merge (30 ngày)
28

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

Tất cả issue của google/benchmark

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.