Python perfΒΆ

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


  • JSON format to store benchmark results
  • pyperf (or python3 -m perf) command line tool to display, compare, analyze and modify benchmark results
  • Statistical tools to analyze the distribution of benchmark results
  • compare command supports comparison between multiple benchmark suites (made of multiple benchmarks)
  • timeit command for quick but reliable Python microbenchmarks


Table Of Content:

See also: