Add ASV benchmarks for MDAnalysis.lib core kernels#5292
Open
Amarendra22 wants to merge 2 commits intoMDAnalysis:developfrom
Open
Add ASV benchmarks for MDAnalysis.lib core kernels#5292Amarendra22 wants to merge 2 commits intoMDAnalysis:developfrom
Amarendra22 wants to merge 2 commits intoMDAnalysis:developfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5292 +/- ##
===========================================
- Coverage 93.83% 93.83% -0.01%
===========================================
Files 182 182
Lines 22501 22501
Branches 3195 3195
===========================================
- Hits 21114 21113 -1
- Misses 924 925 +1
Partials 463 463 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
20607e7 to
3f4dbd1
Compare
orbeckst
requested changes
Mar 10, 2026
Member
orbeckst
left a comment
There was a problem hiding this comment.
There may be some overlap with potential GSOC projects so I am going to block this PR for the time being.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds ASV benchmarks for several core computational kernels in
MDAnalysis.lib.The following functions are benchmarked:
distance_arrayself_distance_arraycalc_dihedralsFastNSneighbor searchAtomNeighborSearchThese functions are widely used across MDAnalysis analysis modules and are performance-critical components. Adding benchmarks helps track performance regressions and evaluate future optimizations.
Benchmarks added
lib.distances.DistanceArrayBench.time_distance_arraylib.distances.SelfDistanceArrayBench.time_self_distance_arraylib.dihedrals.DihedralBench.time_calc_dihedralslib.fastns.FastNSBench.time_fastnslib.neighborsearch.NeighborSearchBench.time_neighbor_searchMotivation
The
MDAnalysis.libmodule contains low-level computational kernels that are called repeatedly by higher-level analysis tools. Benchmarking these functions improves performance monitoring and supports future optimization work.LLM / AI generated code disclosure
LLMs or other AI-powered tools were used in this contribution: No (used for research purpose only)
Developers Certificate of Origin
I certify that I can submit this code contribution as described in the Developer Certificate of Origin, under the MDAnalysis LICENSE.
📚 Documentation preview 📚: https://mdanalysis--5292.org.readthedocs.build/en/5292/