Stress test simulator: blockchain queues, mempool and block size

The stress test simulator sends a steady flow of model payments into a queue and clears them when random blocks arrive. It shows why spare average capacity does not eliminate waiting, and why an arrival rate above the block budget creates a growing backlog. Its output is an experiment with stated assumptions, for comparing scenarios, not forecasting the chain.

Simulator · Reference
A brushed aluminium control console with rows of sliders, knobs, switches and orange and green indicator lamps. AI
SimulatorAI-generated image
226 bytes/txassumed payment size
10 minutesmean block interval
24 hoursscenario table duration
32 MBdefault model budget

Run a stress test on a model network

Bars: size of each block (orange when full). Line: transactions still waiting in the mempool.
–sent
–confirmed
–still waiting
–largest block
–full blocks
–mean wait
Scenario, 24 hoursCapacity per blockSentConfirmedStill waitingLargest blockMean wait
24 tx/s at 1 MB 4,424 tx 2,073,600 531,971 1,541,629 1.0 MB 515.6 min
24 tx/s at 32 MB 141,592 tx 2,073,600 2,048,777 24,823 17.2 MB 11.3 min
58 tx/s at 32 MB 141,592 tx 5,011,200 4,951,211 59,989 32.0 MB 11.5 min
300 tx/s at 32 MB 141,592 tx 25,920,000 17,004,672 8,915,328 32.0 MB 197.7 min
300 tx/s at 256 MB 1,132,743 tx 25,920,000 25,609,711 310,289 214.4 MB 11.3 min
Model: 226-byte payments, blocks found at random with a ten-minute average, every block filled up to the limit. Nothing is sent to any network.
01 · Simulator

What the stress test simulator isolates

The stress test simulator asks what happens when transactions arrive steadily but blocks do not. Each payment consumes an assumed 226 bytes, and each block removes queued work up to the selected budget. Nothing is broadcast. This isolates arrival rate, available bytes and random timing. Every figure it prints is arithmetic on those three inputs.

In the stress test simulator, queues can grow for different reasons. A long gap temporarily delays transactions even when average capacity is ample; a rate above the model’s average service capacity creates continuing pressure. The throughput calculator supplies the plain division. This model adds what the division hides: blocks arriving unevenly around the 10-minute target.

02 · Simulator

Stress test simulator method note

The stress test simulator draws independent block gaps from an exponential distribution with a 600-second mean. That produces Poisson block arrivals. The blocks have no schedule. Between blocks, the queue gains the selected transactions per second multiplied by elapsed seconds. At each block, it removes the smaller of the queue or the whole-payment capacity allowed by the block budget.

Capacity uses decimal megabytes: divide the chosen MB value multiplied by 1,000,000 bytes by 226 bytes per payment, then round down. Arrivals form a continuous stream inside the calculation, with displayed counts rounded. The default random sequence is repeatable; choosing new block timing changes that sequence. No extra time is added for checking or transmitting the resulting block afterward.

Simulator · Key figures

What happens to one payment in the model

The model keeps only these four rules, so every result can be traced back to them.

  1. ArrivesA 226-byte payment joins the mempool at the rate set on the slider.
  2. Waits for a blockBlocks arrive at random, ten minutes apart on average.
  3. Is includedEach block takes waiting payments up to the chosen size limit.
  4. Or carries overAnything above the limit waits for the next block, and the queue grows.
03 · Simulator

Reading the blockchain chart and scenario table

The blockchain chart places a bar at each simulated block time. Bar height represents included megabytes, and orange marks full blocks. The line tracks transactions left waiting after blocks. Its scale follows the run’s backlog, so line height alone cannot compare absolute queues between different scenarios. Use the numeric waiting count when making that comparison across different selected workloads.

The table fixes its scenarios at 24 hours under the same default block timing. The controls also allow other durations. Comparing a readout with a row therefore means matching the arrival rate, byte budget and interval first. A larger sent total may simply reflect a longer run rather than faster blockchain processing.

Visible measure Interpretation within the model
Sent transactions Arrivals during the chosen duration
Confirmed transactions Arrivals removed by simulated blocks
Still waiting transactions Queue remaining at the endpoint
Largest block, MB Maximum included payment bytes
Mean wait, minutes Queue time accumulated within the run
04 · Simulator

Block size comparison at 24 transactions per second

At 24 transactions per second, a 1 MB block size permits 4,424 example payments per block, about 7.37 transactions per second at the mean interval. The input exceeds that service rate. In the default 24-hour scenario, 2,073,600 transactions arrive and 1,541,629 transactions remain waiting. Congestion continues throughout this model run. The queue does not clear when a single block arrives.

Keeping arrivals at 24 transactions per second while selecting 32 MB changes the result. The default table leaves 24,823 transactions waiting, with no full blocks. The September test provides an observed workload for comparison: 25.5 transactions per second across its window. Real payments then averaged 231 bytes, close to the model’s 226, so the block size arithmetic carries over.

05 · Simulator

Mempool growth at 300 transactions per second

At 300 transactions per second, the 32 MB scenario exceeds the model’s roughly 236 transactions per second of average room. Its mempool, the model’s queue of transactions waiting for a block, keeps growing despite large blocks. The default run sends 25,920,000 transactions and leaves 8,915,328 transactions waiting. Rerolling the gaps changes the confirmed total, not the mismatch.

With a 256 MB budget, that same arrival rate fits the model’s average capacity. Its remaining mempool represents timing at the endpoint rather than continuous saturation. Whether real nodes could keep that pace is for the guide to reading a stress test. The November main-test account shows how far an announced sending target can sit from observed chain totals.

06 · Simulator

Waiting time and the unfinished tail

The stress test simulator accumulates the area under its queue over time, then divides that accumulated waiting by all arrivals. Its reported minutes include the waiting accumulated during the run by transactions still unconfirmed at the end. Their later waiting is absent. Under heavy congestion, this figure understates the eventual delay those same arrivals would experience before full clearance.

The default block sequence contains 122 blocks over 24 hours, below the expected 144. That is ordinary. During the September 2018 test week, under an older difficulty algorithm, real daily counts swung between 104 and 165 blocks. The Bitcoin Cash confirmation time model explains the same timing principle from a single payment’s point of view.

07 · Simulator

What the blockchain model leaves out

Block propagation, validation, mempool acceptance limits, orphan risk (a valid block losing a race to a rival) and fee priority are absent. Each simulated block clears work instantly. In September 2018, Jonathan Toomim found propagation delays, while Bitcoin ABC reported acceptance difficulties around 100 transactions per second. This blockchain model reproduces none of that machinery.

The November taste test reported generator failures and pauses while funding outputs awaited confirmation. Those interruptions differ from the simulator’s constant arrival stream. A run here assumes payments remain available at the selected rate throughout its duration, including long block gaps. It also gives every included example payment the same 226-byte cost, without distinguishing a fan-out transaction from its spends.

Questions about the simulator

Does running the model create real transactions?

No network receives transactions from this model. It calculates arrivals, queued work and block contents inside the page using the selected rate, duration and block budget. The results describe that calculation only. They do not spend coins, contact miners or test a node, so changing inputs creates no evidence about a real network's measured performance.

Why can a low-rate scenario finish with a backlog?

The final transactions may arrive after the last simulated block. With random timing, the end of the selected duration does not coincide with a confirmation event. A remaining queue can therefore reflect the unfinished tail of an otherwise uncongested run. Persistent growth across many blocks is stronger evidence of insufficient model capacity than the final count alone.

Why does the same scenario change after rerolling?

New block timing changes the random sequence of gaps while keeping the selected arrival rate and byte budget. A run with longer gaps can produce more waiting or fuller blocks. The mean target stays at 10 minutes, but an individual day need not contain the target number of blocks. Repeated timings expose that difference within the model.

Does the waiting figure include unfinished transactions?

Yes. The displayed mean wait comes from accumulated queue time divided by all arrivals during the run. Transactions still queued contribute waiting only until the selected end time. Their eventual additional delay is absent. In the 300 transactions per second run at 32 MB, 8,915,328 transactions are still queued when the clock stops.

Why does the default run have 122 blocks, not 144?

A 600-second mean gives 144 blocks in 24 hours only on average. The default random sequence happens to draw longer gaps, so it ends with 122 blocks. Fewer blocks mean fewer chances to clear the queue, which is why the default table confirms fewer transactions than 144 blocks of capacity would suggest.