The three weights
Every instruction of a program gets three numbers in compute units. Together, per instruction, they are a weighing.
Gross, tare, net
| Weight | What it is |
|---|---|
| Gross | What an instruction burns when built with stock Anchor. |
| Tare | The difference: the weight of the framework. |
| Net | What it burns built with Tare. |
The names come from weighing goods: the gross weight is the goods with their container, the tare is the container, the net is what is left. Here the container is the framework’s generated code.
How a weight is measured
Both builds run the same inputs in a local SVM with the same metering. An instruction’s gross and net are the median compute units over its successful calls, on the stock build and on the Tare build. The median is the upper middle observation, so every figure is a value the meter actually reported.
Tare is gross minus net. A program’s totals are the sums over its measured instructions: one call of each.
What the numbers are read against
Priority fees are charged per compute unit requested. A transaction is capped at 1,400,000 units and an account at 12,000,000 per block. Net is what your users request and what a composition of your instructions has to fit under.