Skip to content

feat: introduce stable workload lookup by ID in benchmark suite#119

Merged
TKorr merged 1 commit intomainfrom
ai-findings
Apr 27, 2026
Merged

feat: introduce stable workload lookup by ID in benchmark suite#119
TKorr merged 1 commit intomainfrom
ai-findings

Conversation

@TKorr
Copy link
Copy Markdown
Contributor

@TKorr TKorr commented Apr 27, 2026

  • Added a by_id method to WorkloadCase for safe retrieval of workloads by their stable identifier, enhancing compile-time safety against reordering.
  • Updated benchmark files to utilize the new method, ensuring that workload selection is resilient to changes in the order of STANDARD_WORKLOADS.
  • Included tests to verify the correctness of workload ID lookups and uniqueness within suites.

These changes improve the robustness of benchmark configurations and enhance the clarity of workload management in the library.

Description

Related Issue

Fixes #

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • 🔧 Refactoring (no functional changes)
  • ⚡ Performance improvement
  • 🧪 Test addition or modification

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual testing

Test environment:

  • OS:
  • Rust version:

Checklist

  • My code follows the project's coding standards
  • I have run cargo fmt and cargo clippy
  • I have added tests for my changes
  • All new and existing tests pass (cargo test)
  • I have updated the documentation as needed
  • I have added an entry to CHANGELOG.md (if applicable)

Screenshots (if applicable)

Additional Notes

- Added a `by_id` method to `WorkloadCase` for safe retrieval of workloads by their stable identifier, enhancing compile-time safety against reordering.
- Updated benchmark files to utilize the new method, ensuring that workload selection is resilient to changes in the order of `STANDARD_WORKLOADS`.
- Included tests to verify the correctness of workload ID lookups and uniqueness within suites.

These changes improve the robustness of benchmark configurations and enhance the clarity of workload management in the library.
@TKorr TKorr merged commit ae90242 into main Apr 27, 2026
17 checks passed
@TKorr TKorr deleted the ai-findings branch April 27, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant