pyperf icon indicating copy to clipboard operation
pyperf copied to clipboard

Display additional information through table.

Open corona10 opened this issue 2 years ago • 2 comments

When we render the markdown table, there only exists benchmarks result. Additional information will be helpful while analyzing the benchmark result.

  • [ ] CPU
  • [ ] Memory
  • [ ] Operating system
  • [ ] Python implementation infos (+ build option, compiler..)

Any suggestion @vstinner ?

corona10 avatar May 13 '23 04:05 corona10

Hi! @corona10 I’d like to work on this enhancement.

pyperf already stores detailed metadata (CPU model, OS, memory, Python build info, etc.) in the benchmark/suite metadata. My plan is to extend the Markdown table renderer to include these fields:

CPU

Memory

OS/platform

Python implementation + compiler

I will fetch these from suite.get_metadata() and add them as additional columns in the rendered table.

If this direction looks good, I can start working on a PR. Thanks!

amritamishra01 avatar Nov 18 '25 10:11 amritamishra01

I would prefer to keep the default output short and readable. But why not adding more columns/lines if you pass an option. The option could be a list of metadata keys.

vstinner avatar Nov 18 '25 16:11 vstinner