Generate perf stats

Open
#122 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
performance

Research direction

Review pyperf's existing simple timing support and the related issue #107 first. Determine which perf statistics can be exposed across differing hardware and setups, and define how the results should be represented and validated. Done means the selected perf statistics are accessible alongside timings with documented behavior for unsupported counters.

Written by the indexing model from the issue text.

Description

As well as simple timings, it would be useful to have access to the stats generated by perf.
Exactly what stats are available will depend very much on the hardware and setup, but perf can generate a lot useful information, e.g.:

  • Instructions retired
  • Cache misses (both I and D caches)
  • Stalls.

This sort of information would be very useful when trying to improve performance.
See also, https://github.com/psf/pyperf/issues/107

Dominant language
Python
Stars
967
Forks
112
Avg merge
5d 8h
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from psf/pyperf

All issues in psf/pyperf

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.