How To Install python3-pytest-benchmark on Fedora 36

In this tutorial we learn how to install python3-pytest-benchmark in Fedora 36. python3-pytest-benchmark is A py.test fixture for benchmarking code

Introduction

In this tutorial we learn how to install python3-pytest-benchmark on Fedora 36.

What is python3-pytest-benchmark

This plugin provides a benchmark fixture. This fixture is a callable object that will benchmark any function passed to it. Notable features and goals - Sensible defaults and automatic calibration for microbenchmarks - Good integration with pytest - Comparison and regression tracking - Exhausive statistics - JSON export

We can use yum or dnf to install python3-pytest-benchmark on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pytest-benchmark.

Install python3-pytest-benchmark on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-pytest-benchmark using dnf by running the following command:

sudo dnf -y install python3-pytest-benchmark

Install python3-pytest-benchmark on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-pytest-benchmark using yum by running the following command:

sudo yum -y install python3-pytest-benchmark

How To Uninstall python3-pytest-benchmark on Fedora 36

To uninstall only the python3-pytest-benchmark package we can use the following command:

sudo dnf remove python3-pytest-benchmark

python3-pytest-benchmark Package Contents on Fedora 36

/usr/bin/py.test-benchmark
/usr/bin/pytest-benchmark
/usr/lib/python3.10/site-packages/pytest_benchmark
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/pytest_benchmark-3.4.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/pytest_benchmark/__init__.py
/usr/lib/python3.10/site-packages/pytest_benchmark/__main__.py
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/csv.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/csv.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/fixture.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/fixture.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/histogram.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/histogram.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/hookspec.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/hookspec.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/logger.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/logger.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/pep418.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/pep418.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/plugin.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/plugin.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/session.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/session.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/stats.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/stats.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/table.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/table.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/timers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/timers.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/cli.py
/usr/lib/python3.10/site-packages/pytest_benchmark/compat.py
/usr/lib/python3.10/site-packages/pytest_benchmark/csv.py
/usr/lib/python3.10/site-packages/pytest_benchmark/fixture.py
/usr/lib/python3.10/site-packages/pytest_benchmark/histogram.py
/usr/lib/python3.10/site-packages/pytest_benchmark/hookspec.py
/usr/lib/python3.10/site-packages/pytest_benchmark/logger.py
/usr/lib/python3.10/site-packages/pytest_benchmark/pep418.py
/usr/lib/python3.10/site-packages/pytest_benchmark/plugin.py
/usr/lib/python3.10/site-packages/pytest_benchmark/session.py
/usr/lib/python3.10/site-packages/pytest_benchmark/stats.py
/usr/lib/python3.10/site-packages/pytest_benchmark/storage
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__init__.py
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__pycache__
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__pycache__/elasticsearch.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__pycache__/elasticsearch.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__pycache__/file.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/__pycache__/file.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/elasticsearch.py
/usr/lib/python3.10/site-packages/pytest_benchmark/storage/file.py
/usr/lib/python3.10/site-packages/pytest_benchmark/table.py
/usr/lib/python3.10/site-packages/pytest_benchmark/timers.py
/usr/lib/python3.10/site-packages/pytest_benchmark/utils.py
/usr/share/doc/python3-pytest-benchmark
/usr/share/doc/python3-pytest-benchmark/AUTHORS.rst
/usr/share/doc/python3-pytest-benchmark/CHANGELOG.rst
/usr/share/doc/python3-pytest-benchmark/CONTRIBUTING.rst
/usr/share/doc/python3-pytest-benchmark/README.rst
/usr/share/licenses/python3-pytest-benchmark
/usr/share/licenses/python3-pytest-benchmark/LICENSE

References

Summary

In this tutorial we learn how to install python3-pytest-benchmark on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).