Add synthetic benchmark scenarios for common Value operations
@Unisay ci sta già lavorando.
Dal 6/7/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
A real validator spends a meaningful share of its execution budget on Value plumbing: unioning values and looking up individual amounts inside the nested Map CurrencySymbol (Map TokenName Integer). CAPE measures whole contracts, so that cost is always tangled up with everything else a scenario does. There is no place to see what a single Value idiom costs on its own, or to compare two ways of writing it.
Proposal: add a small family of focused scenarios, each exercising one common Value operation on representative inputs and measured like any other submission. A candidate starting set:
unionValueunionValueWithoutCurrencyName- lookup of a single
(CurrencySymbol, TokenName)amount - summing the lovelace across a list of outputs
The exact list and the input shapes (how many currency symbols, how many token names per symbol, how many outputs) still need to be pinned down before this is actionable.
Why it is worth having:
- A cost baseline for the operations that dominate real contracts, independent of any one contract's logic.
- A shared target where the Plinth / Plutarch / Aiken / Scalus implementations of the same primitive can be compared directly, which is harder to do fairly inside a full contract.
The valuePaidTo replacement in the escrow submission (folding raw lovelace entries instead of mconcat-ing whole Values) is exactly the kind of choice these micro-benchmarks would let us measure in isolation.
- Lingua principale
- Untyped Plutus Core
- Stelle
- 12
- Fork
- 10
- Merge medio
- 2g 5h
- PR unite (30g)
- 9
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di IntersectMBO/UPLC-CAPE
-
UPLC-CAPE: Network profiles measure and report submissions per networkForse già presa @Unisay l’ha presa 9 giorni fa. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#281 · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
IntersectMBO/UPLC-CAPE#279 ·
-
UPLC-CAPE: ScriptContextBuilder: placeholder values the ledger never producesForse di nuovo libera @Unisay l’ha presa 30 giorni fa e non c’è nessuna pull request aperta. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#273 · 1 assegnatario ·
-
UPLC-CAPE: ScriptContextBuilder: build TxInfo in the ledger's orderForse di nuovo libera @Unisay l’ha presa 30 giorni fa e non c’è nessuna pull request aperta. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#271 · 1 assegnatario ·
-
Add a programmable-tokens (CIP-113) benchmark scenarioForse di nuovo libera @Unisay l’ha presa 152 giorni fa e non c’è nessuna pull request aperta. ApertaUPLC-CAPE
IntersectMBO/UPLC-CAPE#228 · 1 assegnatario ·