Repository navigation
Conversation
Collaborator
|
@aarya18dh Since the actual matrix construction occurs in each operator's constructor .init(), invoking .matrix reconstructs the matrix rather than returning the matrix already built by the constructor, which increases the timing. You can remove the call to .matrix in benchmark_operators.py to get a more accurate timing. |
Author
|
Thank you for pointing this out. I removed the |
cpaolini
self-requested a review
November 21, 2026 01:18
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This branch has not been deployed
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.
What type of PR is this? (check all applicable)
Description
This pull request adds a reproducible Python performance-benchmarking suite for the existing MOLE mimetic operators.
The benchmark measures:
The benchmark includes Gradient, Divergence, and Laplacian for one-dimensional and two-dimensional grids. Curl is included for two-dimensional grids because the current MOLE Python API supports Curl only in 2D.
The underlying mathematical implementations are not modified.
Related Issues & Documents
QA Instructions, Screenshots, Recordings
From the root directory of the MOLE repository, install the local Python package if necessary:
Keep-open request
keep-open.Reason: This contribution is ready for maintainer review. I am requesting that the pull request remain open while maintainers provide feedback on the benchmark design, output format, and documentation.
Added/updated tests?
_We encourage you to test all code included with MOLE, including examples.
Read Contributing Guide and Code of Conduct