Custom Benchmark fixture for running benchmark tests when the pytest-benchmark plugin is disabled#302
Custom Benchmark fixture for running benchmark tests when the pytest-benchmark plugin is disabled#302aseembits93 wants to merge 14 commits into
Conversation
PR Reviewer Guide 🔍(Review updated until commit 3c76a95)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 3c76a95 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 3c76a95
Suggestions up to commit aa33d77
Suggestions up to commit 56108b5
|
|
Persistent review updated to latest commit aa33d77 |
|
Persistent review updated to latest commit 3c76a95 |
|
closing for now as there are other ways of achieving the same goal |
|
Persistent review updated to latest commit 3c76a95 |
|
@misrasaurabh1 the plugin is not used anywhere in codeflash, it's just defined for future use. |
This custom is designed for future use, it's currently not being imported anywhere in codeflash
PR Type
Enhancement, Tests
Description
Add custom pytest benchmark fixture plugin
Integrate plugin into test runner environments
Add marker-based benchmark test case
Changes walkthrough 📝
test_benchmark_bubble_sort.py
Add marker-based benchmark testcode_to_optimize/tests/pytest/benchmarks/test_benchmark_bubble_sort.py
test_sort_with_markerwith@pytest.mark.benchmarkbenchmarkdecorator usagecustom_plugin.py
Implement custom pytest benchmark fixturecodeflash/benchmarking/plugin/custom_plugin.py
CustomBenchmarkfixture__call__,pedantic, and attribute stubsbenchmarkmarker and real-fixture fallback logictest_runner.py
Include benchmark plugin in test runner envcodeflash/verification/test_runner.py
PYTEST_PLUGINSto include custom benchmark plugin