Pyperf

Latest version: v2.9.0

Safety actively analyzes 714447 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

2.9.0

--------------------------

* Feature: A new hook, ``perf_record``, is available to turn Linux perf profiling on and off around the benchmark code.
To use it, pass ``--hook perf_record``.
Patch by Matt Page.
* Feature: pyperf will now warn if you are collecting too few or too many samples for stable results.
Patch by Michael Droettboom

2.8.1

--------------------------

* Bugfix: Hooks now work correctly in subprocess benchmarks (`bench.run_command`).
Patch by Michael Droettboom
* Python 3.8 is now unsupported.
Patch by Hugo van Kemenade

2.8.0

--------------------------

* Benchmarks now have a timeout.
Patch by Diego Russo.
* The example code in bench_time_func.py uses the more modern `time.perf_counter()`.
Patch by Hajime Senuma.
* pystats are now correctly collected in subprocesses.
Patch by Michael Droettboom.
* pyperf now supports "hooks" to add custom functionality around each benchmarking call.
pystats are no longer collected automatically, and you must pass `--hook pystats`.
Patch by Michael Droettboom.
* Memory units are now correctly stated in KiB and MiB.
Patch by Ungve Mardal Moe.
* max_mem_rss is now correctly measured on macOS.
Patch by Michael Droettboom.
* `pyperf system tune` now works correctly on aarch64.
Patch by Diego Russo.

2.7.0

---------------------------

* Fix logic in MSR availability test.
Patch by Mike Droettboom.
* Disable tuning TurboBoost setting on non-Intel device.
Patch by Mike Droettboom.
* Include CONFIG_ARGS in Metadata.
Patch by Jeff Glass.
* Support environment variables PYTHON_GIL / PYTHON_CPU_COUNT.
Patch by Donghee Na.

2.6.3

---------------------------

* Support Free-threading CPython (PEP-703) by disabling psutil related features.
Relevant issue: https://github.com/python/cpython/issues/116024.
Patch by Donghee Na.
* Fix mem_max_rss measurement on macOS.
Patch by Mike Droettboom.

2.6.2

---------------------------

* Now, pystats stats are collected during warmups.
Patch by Mike Droettboom.
* system: Fix detection of battery.
Patch by Victor Stinner

Page 1 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.