asv-runner
Core Python benchmark code for ASV
What it is and what it does
asv-runner is the execution engine for the ASV benchmarking framework. It provides the core Python code that actually runs performance benchmarks, measures their execution time, and collects results. The package is intentionally minimal—it has no external dependencies beyond importlib-metadata and is designed to work across Python 3.7 and later, making it a stable foundation for benchmark infrastructure.
This is a specialized tool: it's the machinery that sits inside ASV to handle benchmark discovery, execution, and timing. Most users will encounter it indirectly through the main asv package. It's useful if you're building custom benchmarking infrastructure, extending ASV's capabilities, or need a lightweight, dependency-free benchmark runner for embedded or constrained environments.
Use it for:
- Run performance benchmarks as part of continuous integration to track code speed regressions over time
- Measure and compare execution time of different implementations or algorithms in your codebase
- Build custom benchmarking tools or frameworks that need a stable, minimal-dependency benchmark executor
- Profile code performance across multiple Python versions in a single test suite
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides core Python benchmark execution code for the ASV benchmarking framework, handling the low-level mechanics of running and measuring performance tests.
Yes, if you are using ASV for benchmarking or building custom benchmark infrastructure. Install it as a dependency of asv or directly if you need a lightweight, zero-external-dependency benchmark runner. The active maintenance, permissive license, and broad Python version support make it reliable. No known vulnerabilities.
Install
asv-runner on PyPI
pip
pip install asv-runneruv
uv add asv-runnerpoetry
poetry add asv-runnerInstalling asv-runner
Before you install
Low install friction with a single runtime dependency (importlib-metadata). Active maintenance with a release 10 days old and recent commits. Marked as Beta but supports Python 3.7 through 3.12.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license notice.
Quickstart
pip install asv-runner
from asv_runner.benchmarks.mark import benchmark
@benchmark
def time_example():
pass
Requires Python 3.7 or later; designed as a core library for ASV, not typically used standalone.
Verify before relying
- Whether this package is intended for direct use or primarily as a dependency of the main asv package
- What specific benchmark execution capabilities are provided beyond the decorator interface
- Concrete examples of benchmark discovery and execution mechanics
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — importlib-metadata |
| Maintenance | actively maintained — 10 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 602,930/month — #5,813 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: asv_runner-0.3.0-py3-none-any.whl
Tags
More Benchmark packages
psutil retrieves real-time information about…
permissive · top 1,000 on PyPI
netaddrRepresents and manipulates IPv4, IPv6, MAC…
permissive · top 5,000 on PyPI
pytest-codspeedA pytest plugin that integrates performance…
permissive · top 5,000 on PyPI
interruptingcowInterrupts long-running Python code by raising…
permissive · top 15,000 on PyPI
oci-openaiProvides OpenAI-compatible Python clients for…
unclear · top 15,000 on PyPI
google-benchmarkProvides Python bindings to Google's C++…
permissive · top 15,000 on PyPI
asvasv benchmarks Python packages over their…
permissive · top 15,000 on PyPI
codeflash-benchmarkA pytest plugin that adds benchmarking…
unclear · top 15,000 on PyPI
pytest-benchmarkA pytest fixture that benchmarks Python…
permissive · top 5,000 on PyPI
terminal-benchTerminal-Bench provides a benchmark suite and…
unclear · top 15,000 on PyPI
msbench-utilsProvides utility functions and helpers for…
permissive · top 15,000 on PyPI
ansible-runnerAnsible Runner provides a Python library and…
permissive · top 5,000 on PyPI
nemo-evaluatorNeMo Evaluator runs standardized benchmarks…
permissive · top 15,000 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI