Skip to content

report: lead each scenario card with total fee and scripts per transaction - #270

Open
nau wants to merge 1 commit into
IntersectMBO:mainfrom
nau:feat/report-lowest-fee
Open

nau wants to merge 1 commit into
IntersectMBO:mainfrom
nau:feat/report-lowest-fee

Conversation

@nau

@nau nau commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

The main page awards best CPU, best memory and smallest size. None of them answers the two questions a dApp developer asks first: what does one execution cost, and how many fit in a transaction?

  • Total fee (execution fee plus reference-script fee) prices CPU, memory and size the way the ledger does. Example from current main, ecd: Plinth 1.64/1.65 win the CPU and memory medals, but their 502-byte script costs 13,002 lovelace in total, against 7,886 for the lowest-fee rows.
  • Scripts per transaction is how many executions of the most expensive measured case fit in one transaction's budget (16.5M memory, 10B CPU, as on mainnet). No fee raises this limit.

Both values are already in every metrics.json. Each card now shows them first, in their own row; the CPU, memory and size medals follow unchanged, and a short legend under the header explains both. When no submission fits in one transaction, as in fibonacci_naive_recursion, the card says so instead of naming a tie at 0.

Checked by generating the full report with cape submission report --all.

…ction

The main page awards best CPU, best memory and smallest size, but none
of them is what a dApp developer asks first: what does one execution
cost, and how many fit in a transaction? The total fee (execution plus
reference-script fee) prices CPU, memory and size the way the ledger
does, and scripts per transaction is a limit no fee can raise. Both are
already in every metrics.json.

Each card now shows these two first, in their own row, and the three
medals below unchanged. A legend under the header says what each means.
When the most expensive case exceeds one transaction for every
submission, as in fibonacci_naive_recursion, the card says so instead of
naming a tie at 0.
@nau
nau force-pushed the feat/report-lowest-fee branch from 4625709 to cf0bc33 Compare November 4, 2026 15:15
@nau nau changed the title report: lead each scenario card with the lowest total fee report: lead each scenario card with total fee and scripts per transaction Nov 4, 2026

This branch has not been deployed

No deployments
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