Sub topic 7
Testing Throughput and Scalability Claims
Assume you understand blocks, transactions, consensus, wallets, and basic percentages. This chapter also assumes you can read simple Python. The goal is not to accept a headline such as “100,000 transactions per second.” The goal is to identify the conditions that produce the number and test whether those conditions match the proposed system.
Separate the performance terms
Throughput is the number of transactions a system completes per unit of time. It is usually reported as transactions per second (TPS). Latency is the time between submitting a transaction and receiving a result. Confirmation latency is the time until the transaction has enough finality for its risk level.
These terms are related but not interchangeable. A system may process many transactions per second while taking a long time to confirm them. It may also confirm quickly in a small test while failing under realistic load.
| Claim | Questions to ask |
|---|---|
| 50,000 TPS | What transaction size, hardware, and workload produced it? |
| One-second finality | Is the result reversible, probabilistic, or economically final? |
| Scales linearly | Which resource increases as users or validators increase? |
| Low fees at scale | Who pays for bandwidth, storage, and computation? |
A paper should define whether its measurement means theoretical capacity, benchmark throughput, or sustained production throughput. These are different claims.
Derive the number from stated limits
Start with the simplest capacity estimate:
transactions per second =
transactions per block / seconds per blockIf a block is 1,000,000 bytes and an average transaction is 250 bytes, the block can hold at most 4,000 transactions. With one block every 600 seconds, the resulting capacity is about 6.7 TPS.
# Back-of-envelope transactions-per-second estimate from stated parameters.
def tps(block_size_bytes, avg_tx_bytes, block_interval_seconds):
txs_per_block = block_size_bytes // avg_tx_bytes
return txs_per_block / block_interval_seconds
# Hypothetical chain: 1 MB blocks, 250-byte transactions,
# one block every 600 seconds.
print(round(tps(1_000_000, 250, 600), 1))This estimate is deliberately incomplete. Headers, signatures, metadata, state reads, rejected transactions, and protocol messages consume resources too. Nevertheless, it exposes arithmetic that a headline may hide.
If the paper claims more capacity than its block size and interval allow, look for a stated mechanism such as parallel execution, sharding, data compression, batching, or off-chain processing. Then check whether the claim counts each user action or only one aggregate transaction.
Test the assumptions
For each performance number, record the assumptions in a small worksheet:
- Block or batch size
- Average and worst-case transaction size
- Block interval and confirmation rule
- Validator or node hardware
- Network bandwidth and geographic distribution
- Workload mix, including reads, writes, signatures, and contract calls
- Whether the test includes consensus, storage, synchronization, and recovery
A benchmark using identical machines in one data center does not establish global performance. A test with empty transactions does not represent a smart-contract workload. A result measured before state grows may not predict performance after years of history.
Understand scalability trade-offs
Scaling one resource can move the bottleneck elsewhere. Larger blocks may increase throughput, but they require more bandwidth and storage. More validators may improve decentralization, but consensus messages and coordination may increase latency. Parallel execution may raise throughput when transactions do not conflict, while conflicting writes still serialize.
Distinguish horizontal scaling from simply buying stronger hardware. Horizontal scaling adds machines or shards. Ask how data is divided, how cross-shard transactions work, and what happens when one part is slow or unavailable.
Write an evidence-based judgment
A strong assessment states the claim, reproduces the calculation, lists the assumptions, and identifies the missing evidence. Use precise language:
- “The stated parameters imply approximately 6.7 TPS before protocol overhead.”
- “The benchmark measures isolated execution, not end-to-end confirmation.”
- “The paper does not specify cross-shard latency or failure behavior.”
This is more useful than calling a number impressive or unrealistic without showing why.
Exercise
A paper claims 2,000 TPS using 2 MB blocks, 500-byte transactions, and a 10-second block interval. What capacity follows from those assumptions before overhead?
Show answer
A block holds 2,000,000 / 500 = 4,000 transactions. At one block every 10 seconds, the implied capacity is 4,000 / 10 = 400 TPS, so the claim requires another mechanism or has inconsistent parameters.