skip to navigation
skip to content

perf 1.2

Python module to generate and modify perf

The Python perf module is a toolkit to write, run and analyze benchmarks.

Features:

  • Simple API to run reliable benchmarks
  • Automatically calibrate a benchmark for a time budget.
  • Spawn multiple worker processes.
  • Compute the mean and standard deviation.
  • Detect if a benchmark result seems unstable.
  • perf stats command to analyze the distribution of benchmark results (min/max, mean, median, percentiles, etc.).
  • perf compare_to command tests if a difference if significant. It supports comparison between multiple benchmark suites (made of multiple benchmarks)
  • perf timeit command line tool for quick but reliable Python microbenchmarks
  • perf system tune command to tune your system to run stable benchmarks.
  • Automatically collect metadata on the computer and the benchmark: use the perf metadata command to display them, or the perf collect_metadata command to manually collect them.
  • --track-memory and --tracemalloc options to track the memory usage of a benchmark.
  • JSON format to store benchmark results.
  • Support multiple units: seconds, bytes and integer.

Quick Links:

Command to install perf on Python 3:

python3 -m pip install perf

perf supports Python 2.7 and Python 3. It is distributed under the MIT license.

 
File Type Py Version Uploaded on Size
perf-1.2-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-04-10 81KB
perf-1.2.tar.gz (md5) Source 2017-04-10 163KB