Add standardized benchmark suite for interface overhead and sampling audit#128
Open
saksham-stack wants to merge 1 commit intoGeomScale:developfrom
Open
Add standardized benchmark suite for interface overhead and sampling audit#128saksham-stack wants to merge 1 commit intoGeomScale:developfrom
saksham-stack wants to merge 1 commit intoGeomScale:developfrom
Conversation
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.
This PR introduces a dedicated benchmarking suite to the dingo repository. As discussed in volesti#423, the goal is to provide a repeatable way to measure the performance overhead introduced by the Python interface and to audit the numerical consistency (convergence) of the sampling process.
By moving this logic into a standardized /benchmarks directory, we ensure that future changes to the C++ core or Python wrappers can be audited for performance regressions.
Changes
• Added /benchmarks directory: Established a new package for performance-related tests.
• test_samplers_bench.py: Implemented a pytest-benchmark suite that measures the wall-clock time for sampling from high-dimensional polytopes (e.g., unit cube).
• metrics_utils.py: Integrated ArviZ to calculate Effective Sample Size (ESS), addressing the need for automated convergence diagnostics.
•Documentation: Added a README.md and requirements-bench.txt to guide contributors on how to run and interpret these benchmarks.
Verification Results
Running pytest benchmarks/ locally on [Your OS/Processor] yielded the following for a 10D unit cube:
• Mean Sampling Time: [Insert your result from terminal, e.g., 12.5ms]
• Avg ESS: [Insert your ESS result, e.g., 450.2]
•Interface Overhead: [Insert your calculated overhead %]
GSoC 2026 Context
I am a prospective GSoC 2026 contributor. This task has helped me familiarize myself with the dingo sampler interface and the integration of volesti bindings. I plan to expand this suite to include more complex geometries (e.g., simplices) as the project progresses.