Skip to content

Conversation

@AryanGodara
Copy link
Member

@AryanGodara AryanGodara commented Jun 20, 2025

Linked Issues

  • closes NOISSUE

Description

Added stress testing scripts for the submitter service to evaluate performance under load. These scripts test various endpoints:

  • stressTestCreateAccount.ts: Tests the account creation endpoint with configurable concurrent requests
  • stressTestExecute.ts: Tests the execute endpoint for processing boops
  • stressTestSimulate.ts: Tests the simulate endpoint for boop simulation
  • stressTestSubmit.ts: Tests the submit endpoint with comprehensive receipt tracking
  • utils/nonceMonitor.ts: Utility for monitoring executor nonces during tests

Each script supports configurable parameters including concurrent requests, batch size, and delay between batches. They collect and report detailed metrics on success rates, latency (min, max, average, percentiles), and error distribution.

Toggle Checklist

Checklist

Basics

  • B1. I have applied the proper label & proper branch name (e.g. norswap/build-system-caching).
  • B2. This PR is not so big that it should be split & addresses only one concern.
  • B3. The PR targets the lowest branch it can (ideally master).

Reminder: PR review guidelines

Correctness

  • C1. Builds and passes tests.
  • C2. The code is properly parameterized & compatible with different environments (e.g. local,
    testnet, mainnet, standalone wallet, ...).
  • C3. I have manually tested my changes & connected features.

< INDICATE BROWSER, DEMO APP & OTHER ENV DETAILS USED FOR TESTING HERE >

< INDICATE TESTED SCENARIOS (USER INTERFACE INTERACTION, CODE FLOWS) HERE >

  • C4. I have performed a thorough self-review of my code after submitting the PR,
    and have updated the code & comments accordingly.

Architecture & Documentation

  • D1. I made it easy to reason locally about the code, by (1) using proper abstraction boundaries,
    (2) commenting these boundaries correctly, (3) adding inline comments for context when needed.
  • D2. All public-facing APIs are documented in the docs.
    Public APIS and meaningful (non-local) internal APIs are properly documented in code comments.
  • D3. If appropriate, the general architecture of the code is documented in a code comment or
    in a Markdown document.
  • D4. An appropriate Changeset has been generated (and committed) with make changeset for
    breaking and meaningful changes in packages (not required for cleanups & refactors).

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@AryanGodara AryanGodara changed the title feat: add stress test scripts for submitter endpoints with nonce monitoring Add stress test scripts for submitter endpoints Jun 20, 2025
@cloudflare-workers-and-pages
Copy link

Deploying happychain with  Cloudflare Pages  Cloudflare Pages

Latest commit: b43dd25
Status: ✅  Deploy successful!
Preview URL: https://6fee0109.happychain.pages.dev
Branch Preview URL: https://aryan-stress-test-submitter.happychain.pages.dev

View logs

@AryanGodara AryanGodara self-assigned this Jun 23, 2025
@AryanGodara AryanGodara added the no-merge For showcase, not to be merged label Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-merge For showcase, not to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants