<aside>

The most Monad-specific tool in the studio. It reads every storage slot each function touches, works out which pairs of transactions can run side by side, and tells you exactly which slots are forcing the rest to queue.

</aside>

Why this exists

Monad runs transactions in parallel and only serialises the ones that conflict. Two transactions conflict when they touch the same storage slot and at least one writes it. A contract where every call writes the same counter runs one call at a time, on any chain. A contract whose state is keyed by caller runs as wide as the network allows. The profiler shows which of those you have built, before you deploy.

Steps

  1. Open the contract. It does not need to be compiled first.
  2. Click the Parallel execution profiler icon in the top bar (the branching-lines icon), then Analyze contract.
  3. Read the panel. It has four tabs.

The Overview for the Simple DAO template: 29 percent of concurrent pairs run without contention, the four slots responsible, and the fixes in priority order.

The Overview for the Simple DAO template: 29 percent of concurrent pairs run without contention, the four slots responsible, and the fixes in priority order.

Reading the four tabs

The Graph tab draws functions and the storage they share. Dense clusters are where transactions queue.

The Graph tab draws functions and the storage they share. Dense clusters are where transactions queue.

What you get

A score to quote, a list of slots to fix, and a Share button that produces a link reproducing the analysis. The contract travels compressed inside the link's fragment; nothing is stored on a server. This is the link to put in a hackathon submission.

The three changes that usually help most

  1. Key global state by caller. mapping(address => uint256) balances lets two users' transactions run together. A single uint256 totalStaked that every call updates does not.
  2. Move aggregates out of the hot path. If a total is only needed for display, compute it off-chain or update it lazily rather than on every transaction.