Add operation count display and regression testing to benchmarks#154
Add operation count display and regression testing to benchmarks#154tjstienstra merged 3 commits intomainfrom
Conversation
📊 Benchmark Resultsrolling_disc
Whipple bicycle Moore
💡 Lower operation counts (especially after CSE) indicate more efficient symbolic computations. |
tjstienstra
left a comment
There was a problem hiding this comment.
I like the baseline file and also having the checks. However, we've just migrated to UV so you'll need to update the PR.
Updated the workflow to use UV instead of Poetry. All jobs now use |
tjstienstra
left a comment
There was a problem hiding this comment.
You should rebase the branch on main or merge main into it. Not make separate commits to reflect the changes in main.
Rebased the branch on main. The branch now has a clean history: The rebase:
The branch needs a force push to update the remote. I don't have direct push access, so this will require manual intervention or updating the automation to support force pushes after rebases. |
fab28f3 to
469bb71
Compare
Co-authored-by: tjstienstra <97806294+tjstienstra@users.noreply.github.com>
Implementation Complete ✅
Requirements Analysis
Based on the issue, I need to:
Rebased on Main Branch
Final Implementation Summary
Following the KISS principle, the solution uses pytest-benchmark's built-in features with minimal custom code:
1. Operation Count Display (~50 lines)
pytest_terminal_summaryhook inbenchmarks/conftest.py2. Regression Testing (~50 lines)
.benchmarks/baseline.json3. GitHub Actions Integration
--benchmark-autosavefor automatic result saving--benchmark-jsonfor PR commentsExample PR Comment Table
Files Changed
benchmarks/conftest.py: 107 lines (minimal, clean).github/workflows/tests.yaml: Enhanced with benchmarking and baseline comparison.benchmarks/baseline.json: Baseline operation countsbenchmarks/README.md: Documentation for usage.gitignore: Added pytest cache filesThe implementation is production-ready, well-documented, and follows best practices.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.