Skip to content

[v2] Add support for chunking performance tests, and architectural changes #9485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: v2
Choose a base branch
from

Conversation

aemous
Copy link
Contributor

@aemous aemous commented May 9, 2025

Context:

The main purpose of this PR is adding 'chunking' support to performance tests to enable sharding of the tests across parallel workers in a distributed workflow. The secondary purpose of this PR is to refactor the architecture of the performance testing code to make it easier to integrate more complex performance tests. The architectural decisions were led by implementing more complex RPCv2 CBOR performance test cases and observing points of friction.

Description of changes:

  • Adds support for evenly chunking performance test cases and only running a specified chunk
  • Implemented a BaseBenchmarkSuite class which defines the abstract functions that must be implemented to define new performance tests. The default performance test cases were abstracted out into a JSONStubbedBenchmarkSuite implementation.
  • Modifications to JSONStubbedBenchmarkSuite
    • Modified dimensions format to require the usage of name and value keys to reflect the CloudWatch Metrics model.
    • Added support for writing binary content via a new mode key on file_literals definition.
  • Abstracted code for serializing benchmarks results into its own BenchmarkResultsSerializer class. This makes it easier to override this class for one-off performance testing when a different output format is expected.
  • Architectural changes to performance testing
    • Change Summarizer to return metric results in a new Metric data model, which includes additional data like description and unit.

Description of tests:

  • Ran the default JSON stubbed tests via ./scripts/performance/run-benchmarks --num-iterations 20 and observed expected results.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@aemous aemous marked this pull request as ready for review June 4, 2025 20:37
@aemous aemous requested a review from a team June 4, 2025 20:38
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