You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
perhaps we can have the parser/tool as a contribution in the repo, just not as part of the C++ core library, if you're open to that? i agree it sounds useful and i really like the go output :)
Yes, the idea was to modify only Python results parsers: tools/compare.py and tools/gbench/report.py and to add notes about the format in docs/tools.md
Activity
dmah42 commentedon Nov 24, 2026
can you parse the json output into this format with an external tool? that's probably easier than adding a new reporter format to the core library.
DenysZm commentedon Nov 24, 2026
Yes, this is definitely doable.
On the other hand - it might be possible that the format will be useful to other users as well. What do you think?
dmah42 commentedon Nov 24, 2026
perhaps we can have the parser/tool as a contribution in the repo, just not as part of the C++ core library, if you're open to that? i agree it sounds useful and i really like the go output :)
DenysZm commentedon Nov 24, 2026
Yes, the idea was to modify only Python results parsers:
tools/compare.pyandtools/gbench/report.pyand to add notes about the format indocs/tools.md