Skip to content

feat: add binary to benchmark TPS#2073

Draft
SantiagoPittella wants to merge 8 commits into
nextfrom
santiagopittella-benchmark-tps
Draft

feat: add binary to benchmark TPS#2073
SantiagoPittella wants to merge 8 commits into
nextfrom
santiagopittella-benchmark-tps

Conversation

@SantiagoPittella
Copy link
Copy Markdown
Collaborator

@SantiagoPittella SantiagoPittella commented May 13, 2026

Partially address #1989

THis PR introduces a new binary to run benchmarks against the Miden node: miden-benchmark. It is split in two subcommands:

  • create-proofs: which generates proofs and stores them in a file.
  • run-benchmark: that reads the proofs file, submits them to the node and generates a report of the result.

Along with the new binary, this PR also introduces a small change in the block producer configurations by batch_workers configurable.

Note

Currently it won't work against the deployed against the deployed networks due to a change in the protobuf definition of SyncMmr.

Note

Generating 2k transaction (1k mint 1k consume) takes a bit over an hour in a Macbook M4 Max.

In the README of the new binary I added a section about how to start up the block producer with some parameters changes to increase the limit of TPS imposed by the node: TX PER BATCH * BATCHES PER BLOCK / INTERVAL PER BLOCK. At the moment of posting this and with the node's configuration from the README, I didn't reached the limit of TPS yet, though I never sent more than 1k transactions at a time (because the mint transaction are submitted sequentially).

The next steps are to:

  • Increase the pool of transaction types used;
  • Reach the max TPS limit;
  • Try this with testnet's database.

@SantiagoPittella SantiagoPittella force-pushed the santiagopittella-benchmark-tps branch from 8c02a61 to dca1f4f Compare May 13, 2026 20:00
@igamigo igamigo requested review from igamigo May 14, 2026 12:59
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