Skip to content

feat(load-tests): add XEN-shape payload for storage-trie + account-creation stress#2363

Draft
niran wants to merge 1 commit intomainfrom
niran/load-tests-xen
Draft

feat(load-tests): add XEN-shape payload for storage-trie + account-creation stress#2363
niran wants to merge 1 commit intomainfrom
niran/load-tests-xen

Conversation

@niran
Copy link
Copy Markdown
Contributor

@niran niran commented Apr 23, 2026

Draft — alternative to #2366. Only one of these will land. This PR ships an XEN-specific payload with bundled State/Worker/Multicall contracts. #2366 instead reuses the already-deployed Simulator from base/benchmark and exposes its full config in YAML.

Summary

  • Adds a xen YAML transaction type that mirrors XEN's bulkClaimRank shape: each tx loops N CREATE2 Worker deployments, and each worker writes a unique slot in an underlying State contract — N new account-trie entries plus N unique storage writes per tx, with no merging in HashedPostState.
  • Bundles minimal State.sol, Worker.sol, Multicall.sol sources (with a self-contained Foundry project) and embeds their compiled bytecode as &'static [u8] constants on XenContracts. Follows the LooperPayload pattern: deploy manually, pass the addresses via YAML.
  • Unblocks the xen performance-baseline scenario.

Test plan

  • cargo +nightly fmt --all
  • cargo +nightly clippy -p base-load-tests -p basectl --all-features (workspace-wide clippy blocked locally by an unrelated risc0 metal-kernel toolchain issue)
  • cargo nextest run -p base-load-tests — 32/32 pass, including new YAML round-trip + payload tests
  • End-to-end run against sepolia after forge create-ing State and Multicall

type=routine
risk=low
impact=sev5

…eation stress

Adds a 'xen' YAML transaction type that mirrors XEN's bulkClaimRank shape:
each tx loops N CREATE2 deployments of a Worker contract that writes a
unique slot in an underlying State contract — N new account-trie entries
plus N unique storage writes per tx. Unblocks the xen performance-baseline
scenario.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

cb-heimdall commented Apr 23, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
base Ignored Ignored Apr 23, 2026 8:29pm

Request Review

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