Add synthetic benchmark scenarios for common Value operations

Aperta
#227 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@Unisay ci sta già lavorando.

Dal 6/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

UPLC-CAPE

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:

  • unionValue
  • unionValueWithoutCurrencyName
  • 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntersectMBO/UPLC-CAPE

Tutte le issue di IntersectMBO/UPLC-CAPE

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.