Skip to content

RSCBC-280: Add support for new counter bounds type#485

Open
Matt-Woz wants to merge 1 commit into
RSCBC-277from
RSCBC-280
Open

RSCBC-280: Add support for new counter bounds type#485
Matt-Woz wants to merge 1 commit into
RSCBC-277from
RSCBC-280

Conversation

@Matt-Woz

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for a new counter_eq bounds mode and wires up counter management RPCs so workloads can be bounded by counters that are either decremented (counter) or must remain equal to their initial value (counter_eq).

Changes:

  • Introduces Bounds::CounterEq with a CounterEqualsBoundsExecutor.
  • Implements set_counter and clear_all_counters RPCs and routes bounds parsing for the new counter_eq type.
  • Refactors counter storage to be held on Performer and shared across runs.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
performer/src/performer.rs Implements counter RPCs and switches run execution to reuse self.counters.
performer/src/counters/counter.rs Makes Counters Default and adds set()/clear() APIs.
performer/src/common/horizontal_scale_runner.rs Adds parsing for CounterEq bounds and adjusts counter bound creation.
performer/src/common/bounds.rs Adds Bounds::CounterEq and its executor implementation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread performer/src/performer.rs
Comment thread performer/src/counters/counter.rs
@github-actions

Copy link
Copy Markdown

🐰 Bencher Report

BranchRSCBC-280-28185361572-178-1
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencymicroseconds (µs)
query📈 view plot
🚷 view threshold
510.77 µs
upsert_and_get📈 view plot
🚷 view threshold
464.55 µs
🐰 View full continuous benchmarking report in Bencher

@github-actions

Copy link
Copy Markdown

🐰 Bencher Report

BranchRSCBC-280-28186182996-179-1
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencymicroseconds (µs)
query📈 view plot
🚷 view threshold
415.88 µs
upsert_and_get📈 view plot
🚷 view threshold
429.63 µs
🐰 View full continuous benchmarking report in Bencher

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.

2 participants