$npx skillfedfor your agent

pyperf

Python module to run and analyze benchmarks

Worth itPyPI Python ModulesReleased Feb 2026646.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyperf-2.10.0-py3-none-any.whl
v2.10.0 · released 2026-02-07 · Python >=3.9 · 1 runtime deps: psutil

Yes. pyperf is a mature, actively maintained toolkit (950 stars, recent commits, MIT license) with low install friction. It solves a real problem—reliable Python benchmarking with statistical rigor—that most developers either skip or implement poorly. Install it if you need to measure performance seriously rather than relying on ad-hoc timeit calls.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or newer.
  • Low install friction with a single runtime dependency (psutil).
  • Active maintenance with a recent commit on 2026-08-05 and 950 GitHub stars; last release was 2026-02-07, indicating steady upkeep.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute pyperf with minimal restrictions in both open-source and commercial projects.

last release 2026-02-07 (188 days) · last repo commit 2026-08-05 · 950 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 646,012 downloads/mo, #5,597 on PyPI

Verify before relying

pip install pyperf

import pyperf
runner = pyperf.Runner()
runner.timeit(name="sort a sorted list",
              stmt="sorted(s, key=f)",
              setup="f = lambda x: x; s = list(range(1000))")
  • Whether the package's memory tracking (--track-memory, --tracemalloc) works reliably across different Python versions and platforms.
  • Performance overhead of pyperf's own measurement infrastructure relative to raw timeit.
Same gist for agents: .md · .json

What it is and what it does

pyperf is a Python benchmarking toolkit that automates the process of writing, executing, and analyzing performance tests. It handles the tedious parts of reliable benchmarking—automatic calibration to a time budget, spawning multiple worker processes to reduce noise, computing statistics (mean, standard deviation, percentiles), and detecting unstable results—so you can focus on the code you want to measure. Results are stored in JSON format for later analysis or comparison.

You can use it two ways: as a command-line tool (pyperf timeit) for quick one-off measurements, or by writing a benchmark script that instantiates a Runner and calls timeit() or other measurement methods. The toolkit also provides commands to analyze results (pyperf stats), compare benchmark suites across Python versions (pyperf compare_to), and tune your system for stable benchmarking (pyperf system tune). It depends only on psutil for system introspection.

Use it for

  • Measure the performance of a code snippet or function across multiple runs and detect statistical significance.
  • Compare benchmark results across different Python versions or implementations to identify regressions.
  • Track memory usage alongside execution time using --track-memory or --tracemalloc options.
  • Automate performance testing in CI/CD pipelines by writing benchmark scripts that output JSON results.
  • Analyze historical benchmark data to spot trends or anomalies in performance over time.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

pyperf is a mature, actively maintained toolkit (950 stars, recent commits, MIT license) with low install friction. It solves a real problem—reliable Python benchmarking with statistical rigor—that most developers either skip or implement poorly. Install it if you need to measure performance seriously rather than relying on ad-hoc timeit calls.

Install

pyperf on PyPI

Before you install

Low install friction with a single runtime dependency (psutil). Active maintenance with a recent commit on 2026-08-05 and 950 GitHub stars; last release was 2026-02-07, indicating steady upkeep.

Requires Python 3.9 or newer.

License in practice

MIT license (permissive) means you can use, modify, and distribute pyperf with minimal restrictions in both open-source and commercial projects.

Quickstart

pip install pyperf

import pyperf
runner = pyperf.Runner()
runner.timeit(name="sort a sorted list",
              stmt="sorted(s, key=f)",
              setup="f = lambda x: x; s = list(range(1000))")

Verify before relying

  • Whether the package's memory tracking (--track-memory, --tracemalloc) works reliably across different Python versions and platforms.
  • Performance overhead of pyperf's own measurement infrastructure relative to raw timeit.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
psutil
MaintenanceActively maintained 188 days since the last release
Last repo commit
First released
Downloads646,012 / month, #5,597 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules

Evidence: pyperf-2.10.0-py3-none-any.whl

Tags

Capabilities
python benchmark runnerperformance testing frameworkstatistical benchmark analysistimeit automationbenchmark comparison toolpython profiling toolkitreliable performance measurement
Topics
benchmarkingperformance-testingstatistics

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “statistical benchmark analysis”

  • pyperfpyperf is a toolkit for writing, running, and analyzing Python…
  • google-benchmarkProvides Python bindings to Google's C++ benchmarking library,…
  • nemo-evaluatorNeMo Evaluator runs standardized benchmarks against language models…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pytest-codspeed · google-benchmark · asv · hdrhistogram · pytest-benchmark · bootstrapped · pystack · codeflash-benchmark · fev · Bottleneck