https://github.com/glentner/pybench
A simple Python benchmarking tool.
https://github.com/glentner/pybench
Last synced: 4 days ago
JSON representation
A simple Python benchmarking tool.
- Host: GitHub
- URL: https://github.com/glentner/pybench
- Owner: glentner
- License: apache-2.0
- Created: 2021-03-06T01:26:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-08T03:36:42.000Z (over 4 years ago)
- Last Synced: 2025-02-23T02:25:02.604Z (over 1 year ago)
- Language: Python
- Size: 181 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Simple Performance Benchmarks for Python
========================================
The ``pybench`` command-line tool can run a number of compute-intensive performance benchmarks
and gather telemetry on not just the time to execute but also CPU and memory footprint. The
logging output generated by a run can be piped into an included graphing utility to look at
resource consumption during task execution.
The focus is on numerical and scientific computing tasks, but common pure-Python tasks are
also included. Discover tasks with ``pybench list``.
Run tasks by name and provide arguments. For example, to execute a large matrix multiplication
task 30 times for ``float64`` precision for a given size:
.. code-block::
pybench run numpy.matmul float64 20000 --repeat 30 --spacing 10 --monitor-cpu --monitor-memory \
|& tee output.log | pybench graph -o results.pdf --print