Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forwards compatibility with Cardano.Api.Tx.UTxO from cardano-api-10.11 #1873

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

locallycompact
Copy link
Contributor

These will be the new names of these functions in cardano-api-10.11 so we make this change ahead of time.

@locallycompact locallycompact force-pushed the lc/utxo-fromtolist branch 2 times, most recently from b692c91 to 332285b Compare March 5, 2025 10:17
Copy link

github-actions bot commented Mar 5, 2025

Transaction cost differences

Script summary

Name Size (Bytes)
νInitial -
νCommit -
νHead -
μHead -
νDeposit -

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
40 - - - -

Commit transaction costs

UTxO Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
54 - - - -

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 - - - - -
2 - - - - -
3 - - - - -
4 - - - - -
5 - - - - -
6 - - - - -
7 - - - - -
8 - - - - -

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - $${\color{green}-0.39}$$ $${\color{green}-0.09}$$ -
10 - - - -
37 - - - -

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
40 - - - -

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
34 - - - -

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
27 - - - -

FanOut transaction costs

UTxO, Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
(0, 10) - - - - -
(1, 10) - - - - -
(5, 10) - - - - -
(10, 10) - - - - -
(20, 10) - - - - -
(37, 10) - - - - -

Copy link

github-actions bot commented Mar 5, 2025

Transaction costs

Sizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using arbitrary values and results are not fully deterministic and comparable to previous runs.

Metadata
Generated at 2025-03-06 09:08:27.049533225 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial c8a101a5c8ac4816b0dceb59ce31fc2258e387de828f02961d2f2045 2652
νCommit 61458bc2f297fff3cc5df6ac7ab57cefd87763b0b7bd722146a1035c 685
νHead 0e35115a2c7c13c68ecd8d74e4987c04d4539e337643be20bb3274bd 14756
μHead 57166715eadb8d3135964325c016eea546c21e1c0aae974ca67df9a5* 5541
νDeposit ae01dade3a9c346d5c93ae3ce339412b90a0b8f83f94ec6baa24e30c 1102
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per head.

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 6093 11.23 3.50 0.53
2 6294 13.26 4.11 0.56
3 6499 15.59 4.83 0.60
5 6895 20.19 6.25 0.66
10 7903 31.40 9.68 0.82
40 13936 98.75 30.34 1.78

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 559 2.44 1.16 0.20
2 740 3.38 1.73 0.22
3 923 4.36 2.33 0.24
5 1275 6.41 3.60 0.28
10 2171 12.13 7.25 0.40
54 10048 98.61 68.52 1.88

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 56 524 25.67 7.40 0.43
2 114 636 33.99 9.79 0.52
3 170 747 43.49 12.44 0.62
4 226 858 53.58 15.24 0.73
5 280 969 64.49 18.27 0.85
6 338 1081 69.63 19.90 0.90
7 394 1196 88.34 24.68 1.09
8 448 1303 98.93 27.74 1.21

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1813 25.03 8.22 0.49
2 1945 26.69 9.41 0.52
3 2084 28.26 10.56 0.55
5 2525 35.81 14.48 0.66
10 3082 41.94 19.56 0.77
38 7436 99.56 56.90 1.69

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 615 23.95 7.60 0.43
2 741 25.62 8.73 0.45
3 935 27.54 9.90 0.49
5 1141 29.75 11.84 0.53
10 1995 41.73 18.49 0.71
37 6135 97.16 51.76 1.58

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 602 30.21 9.36 0.49
2 813 30.98 10.43 0.51
3 876 34.05 11.86 0.55
5 1219 36.40 14.09 0.60
10 2005 50.34 21.86 0.80
34 5564 96.51 52.91 1.56

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 711 35.95 11.01 0.55
2 878 38.89 12.65 0.59
3 973 40.20 13.62 0.62
5 1254 45.29 16.56 0.69
10 2038 57.48 23.74 0.88
28 4711 99.60 48.81 1.51

Abort transaction costs

There is some variation due to the random mixture of initial and already committed outputs.

Parties Tx size % max Mem % max CPU Min fee ₳
1 5982 28.32 9.34 0.71
2 6186 38.55 12.78 0.83
3 6165 45.83 15.05 0.90
4 6245 51.32 16.83 0.96
5 6403 61.87 20.37 1.08
6 6584 75.12 24.74 1.23
7 6880 87.74 28.96 1.37
8 6946 97.75 32.32 1.48

FanOut transaction costs

Involves spending head output and burning head tokens. Uses ada-only UTXO for better comparability.

Parties UTxO UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
10 1 57 6125 22.71 7.60 0.66
10 5 285 6261 30.31 10.59 0.75
10 10 567 6428 41.15 14.79 0.87
10 30 1707 7110 83.96 31.38 1.37
10 36 2050 7315 97.27 36.52 1.52

End-to-end benchmark results

This page is intended to collect the latest end-to-end benchmark results produced by Hydra's continuous integration (CI) system from the latest master code.

Please note that these results are approximate as they are currently produced from limited cloud VMs and not controlled hardware. Rather than focusing on the absolute results, the emphasis should be on relative results, such as how the timings for a scenario evolve as the code changes.

Generated at 2025-03-06 09:11:27.510438328 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 5.334446190
P99 18.302046129999983ms
P95 9.1000432ms
P50 4.7098765ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-03-06 09:10:11.40065672 UTC 931M 6103M
2025-03-06 09:10:16.400535902 UTC 1045M 5908M
2025-03-06 09:10:21.400700775 UTC 1045M 5907M
2025-03-06 09:10:26.400527554 UTC 1047M 5905M
2025-03-06 09:10:31.400547572 UTC 1047M 5905M
2025-03-06 09:10:36.40058253 UTC 1051M 5900M

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 30.133914786
P99 48.43408653ms
P95 40.31035995ms
P50 28.942175499999998ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-03-06 09:10:49.595865453 UTC 959M 6004M
2025-03-06 09:10:54.595942508 UTC 1199M 5763M
2025-03-06 09:10:59.596694259 UTC 1272M 5628M
2025-03-06 09:11:04.595878987 UTC 1309M 5519M
2025-03-06 09:11:09.595912253 UTC 1309M 5519M
2025-03-06 09:11:14.595929945 UTC 1310M 5518M
2025-03-06 09:11:19.595899619 UTC 1312M 5514M
2025-03-06 09:11:24.595865743 UTC 1312M 5514M

@locallycompact locallycompact force-pushed the lc/utxo-fromtolist branch 2 times, most recently from 1b87c24 to 186208a Compare March 5, 2025 10:46
@locallycompact locallycompact changed the title Rename UTxO.pairs and UTxO.fromPairs as UTxO.toList and UTxO.fromList Forwards compatibility with Cardano.Api.Tx.UTxO Mar 5, 2025
@locallycompact locallycompact changed the title Forwards compatibility with Cardano.Api.Tx.UTxO Forwards compatibility with Cardano.Api.Tx.UTxO from cardano-api-10.11 Mar 5, 2025
Rename UTxO.pairs and UTxO.fromPairs as UTxO.toList and UTxO.fromList

Rename Cardano.Api.UTxO to Cardano.Api.Tx.UTxO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage 🏥
Development

Successfully merging this pull request may close these issues.

1 participant