{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Benchmark","url":"https://skillfed.io/packages/category/system-benchmark"}],"enrichment":{"capability":"A pytest plugin that integrates performance benchmarking into your test suite, letting you measure code execution time using either a decorator or a fixture for precise control.","skillfed_tags":["performance-testing","ci-cd-integration","benchmark"],"use_cases":["Detect performance regressions in pull requests by running benchmarks in CI and comparing against baseline results.","Measure the execution time of critical functions locally during development with the --codspeed flag.","Track performance trends over time by uploading benchmark results to CodSpeed after each commit.","Benchmark specific code sections precisely using the fixture approach rather than measuring entire test functions.","Integrate performance testing into your existing pytest workflow without restructuring your test suite."],"what_it_does":"pytest-codspeed is a pytest plugin that adds performance benchmarking capabilities to your test suite. It lets you mark entire test functions with @pytest.mark.benchmark for automatic measurement, or use a benchmark fixture to measure specific code blocks with fine-grained control. The plugin integrates with CodSpeed, a performance monitoring platform, allowing you to track performance changes over time and detect regressions in CI/CD pipelines.\n\nThe plugin supports measurement modes including walltime. You can run benchmarks locally with the --codspeed flag to see timing results in a formatted table, or integrate them into GitHub Actions workflows to report results to CodSpeed on every push and pull request. The package depends on pytest, rich, and importlib-metadata, making it lightweight to add to existing test suites.","worth_installing":"Yes. The plugin is actively maintained, has low install friction, carries a permissive MIT license, and integrates seamlessly into existing pytest workflows. It's suitable for teams wanting to track performance without setting up separate benchmarking infrastructure, especially when paired with CodSpeed's cloud service for CI/CD integration."},"id":"pytest-codspeed","links":{"html":"https://skillfed.io/packages/pytest-codspeed","md":"https://skillfed.io/packages/pytest-codspeed.md","pypi":"https://pypi.org/project/pytest-codspeed/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-22","license_spdx":null,"license_treatment":"permissive","name":"pytest-codspeed","python_support":"supports_current","summary":"Pytest plugin to create CodSpeed benchmarks"},"popularity":{"monthly_downloads":2883538,"position":2844,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"5.0.3"}
