Skip to content

Conversation

locallycompact
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Aug 21, 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-08-21 15:17:41.419368088 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 947e171f3dbdd1b573103281d0717e5f4817ae7308b0d06341db1745 2744
νCommit 25e8580f4477638f11612e62a211e7be6f9c0e66be5a45721f7a49f8 697
νHead be6ebc744208c660bf0fdc1cfbb5157477cd305de5b1777e575cbb4c 14665
μHead 54845ff9151bb45426652627da35289d11926e70473f273da954f202* 5284
νDeposit b857e599bcf377b77eade9f002b4b5a921812ac63e14b56e2e217e43 1133
  • 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 5837 10.59 3.36 0.52
2 6035 12.25 3.87 0.54
3 6236 14.72 4.66 0.58
5 6641 18.96 6.00 0.64
10 7646 28.81 9.07 0.78
43 14286 98.99 30.94 1.80

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 561 2.18 1.09 0.20
2 737 3.03 1.64 0.22
3 923 3.92 2.21 0.24
5 1279 5.77 3.44 0.28
10 2174 10.88 6.95 0.38
59 10940 97.81 75.44 1.97

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 24.37 7.10 0.42
2 114 636 34.15 9.83 0.53
3 169 751 41.08 11.86 0.60
4 227 858 51.84 14.86 0.71
5 282 969 57.80 16.68 0.78
6 341 1081 64.27 18.62 0.85
7 396 1196 82.66 23.46 1.04
8 449 1303 95.54 26.90 1.17
9 504 1414 87.53 25.28 1.10

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1839 23.83 7.95 0.48
2 1919 24.69 8.80 0.50
3 2090 26.81 10.23 0.53
5 2452 32.11 13.34 0.61
10 3061 38.71 18.74 0.73
40 7408 93.17 56.29 1.63

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 628 22.84 7.38 0.42
2 753 23.66 8.25 0.43
3 861 24.07 9.03 0.45
5 1096 27.12 11.23 0.50
10 2067 41.71 18.66 0.71
40 6256 92.59 52.75 1.55

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 679 27.37 8.80 0.46
2 869 29.71 10.30 0.50
3 970 30.65 11.17 0.52
5 1268 36.81 14.44 0.61
10 2025 47.76 21.43 0.78
37 6072 96.92 55.58 1.60

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 686 33.73 10.50 0.53
2 828 35.65 11.77 0.56
3 896 37.10 12.76 0.58
5 1224 41.60 15.58 0.65
10 1918 52.78 22.44 0.82
30 4973 99.35 50.72 1.54

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 5822 27.01 9.07 0.69
2 5916 34.77 11.64 0.78
3 6092 44.52 14.96 0.89
4 6114 46.96 15.67 0.91
5 6483 65.64 22.25 1.13
6 6451 71.17 23.86 1.18
7 6764 84.35 28.48 1.33
8 6762 85.05 28.57 1.34
9 6955 98.36 33.02 1.49

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 0 0 5835 19.64 6.56 0.61
10 1 57 5869 19.01 6.46 0.61
10 5 284 6003 28.03 9.98 0.71
10 10 569 6173 39.08 14.30 0.84
10 20 1139 6513 58.69 22.08 1.07
10 30 1706 6852 80.09 30.47 1.32
10 39 2220 7159 99.88 38.20 1.55

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-08-21 15:21:30.624069368 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 5.431070133
P99 9.143666229999996ms
P95 6.610071700000001ms
P50 5.2154065ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-08-21 15:20:10.133698266 UTC 1306M 6754M
2025-08-21 15:20:11.132700844 UTC 1351M 6674M
2025-08-21 15:20:12.132687544 UTC 1426M 6526M
2025-08-21 15:20:13.132727995 UTC 1434M 6518M
2025-08-21 15:20:14.132697576 UTC 1450M 6498M
2025-08-21 15:20:15.132743486 UTC 1455M 6488M
2025-08-21 15:20:16.13270598 UTC 1455M 6488M
2025-08-21 15:20:17.132662787 UTC 1455M 6488M
2025-08-21 15:20:18.132678904 UTC 1455M 6488M
2025-08-21 15:20:19.132664424 UTC 1457M 6486M
2025-08-21 15:20:20.132737206 UTC 1457M 6486M
2025-08-21 15:20:21.132697738 UTC 1457M 6486M
2025-08-21 15:20:22.132722322 UTC 1457M 6486M
2025-08-21 15:20:23.132692615 UTC 1457M 6486M
2025-08-21 15:20:24.13270436 UTC 1457M 6486M
2025-08-21 15:20:25.132745292 UTC 1457M 6486M
2025-08-21 15:20:26.132720517 UTC 1457M 6486M
2025-08-21 15:20:27.132706498 UTC 1458M 6485M
2025-08-21 15:20:28.132698212 UTC 1458M 6485M
2025-08-21 15:20:29.132708189 UTC 1458M 6485M
2025-08-21 15:20:30.132741437 UTC 1458M 6485M
2025-08-21 15:20:31.132743972 UTC 1458M 6485M
2025-08-21 15:20:32.132674405 UTC 1458M 6484M
2025-08-21 15:20:33.132686983 UTC 1458M 6484M
2025-08-21 15:20:34.132722966 UTC 1458M 6484M
2025-08-21 15:20:35.132706122 UTC 1457M 6484M
2025-08-21 15:20:36.132661232 UTC 1459M 6483M
2025-08-21 15:20:37.132707966 UTC 1459M 6483M

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 38.253587081
P99 66.89652507ms
P95 55.46050345ms
P50 36.55142ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-08-21 15:20:48.703972487 UTC 1357M 6621M
2025-08-21 15:20:49.703836872 UTC 1357M 6621M
2025-08-21 15:20:50.704010701 UTC 1370M 6608M
2025-08-21 15:20:51.704414873 UTC 1534M 6366M
2025-08-21 15:20:52.703967097 UTC 1553M 6346M
2025-08-21 15:20:53.70481322 UTC 1596M 6302M
2025-08-21 15:20:54.704678879 UTC 1620M 6273M
2025-08-21 15:20:55.704803735 UTC 1638M 6245M
2025-08-21 15:20:56.704045374 UTC 1645M 6227M
2025-08-21 15:20:57.704078537 UTC 1656M 6206M
2025-08-21 15:20:58.704380466 UTC 1658M 6196M
2025-08-21 15:20:59.708355577 UTC 1660M 6187M
2025-08-21 15:21:00.705104195 UTC 1675M 6165M
2025-08-21 15:21:01.70535961 UTC 1680M 6152M
2025-08-21 15:21:02.704299119 UTC 1682M 6143M
2025-08-21 15:21:03.704602205 UTC 1683M 6134M
2025-08-21 15:21:04.703927772 UTC 1687M 6120M
2025-08-21 15:21:05.704152396 UTC 1693M 6103M
2025-08-21 15:21:06.703976203 UTC 1693M 6102M
2025-08-21 15:21:07.704015476 UTC 1693M 6102M
2025-08-21 15:21:08.704176775 UTC 1693M 6102M
2025-08-21 15:21:09.704185886 UTC 1694M 6100M
2025-08-21 15:21:10.703917396 UTC 1695M 6099M
2025-08-21 15:21:11.703979102 UTC 1695M 6099M
2025-08-21 15:21:12.703977886 UTC 1695M 6099M
2025-08-21 15:21:13.704051847 UTC 1695M 6098M
2025-08-21 15:21:14.703999248 UTC 1695M 6098M
2025-08-21 15:21:15.704017415 UTC 1695M 6098M
2025-08-21 15:21:16.704070308 UTC 1695M 6098M
2025-08-21 15:21:17.703997644 UTC 1698M 6094M
2025-08-21 15:21:18.703922278 UTC 1698M 6094M
2025-08-21 15:21:19.703951321 UTC 1698M 6094M
2025-08-21 15:21:20.704108791 UTC 1698M 6094M
2025-08-21 15:21:21.704038655 UTC 1698M 6094M
2025-08-21 15:21:22.704005477 UTC 1709M 6083M
2025-08-21 15:21:23.704098665 UTC 1708M 6083M
2025-08-21 15:21:24.703843887 UTC 1708M 6083M
2025-08-21 15:21:25.704001108 UTC 1708M 6083M
2025-08-21 15:21:26.704063519 UTC 1708M 6083M
2025-08-21 15:21:27.703994315 UTC 1708M 6083M
2025-08-21 15:21:28.703958949 UTC 1708M 6082M
2025-08-21 15:21:29.70388275 UTC 1709M 6081M

Copy link

github-actions bot commented Aug 21, 2025

Transaction cost differences

Script summary

Name Size (Bytes)
νInitial +92
νCommit +12
νHead -
μHead -
νDeposit +31

Init transaction costs

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

Commit transaction costs

UTxO Tx size % max Mem % max CPU Min fee ₳
1 - $${\color{green}-0.26}$$ $${\color{green}-0.07}$$ -
2 - $${\color{green}-0.35}$$ $${\color{green}-0.09}$$ -
3 - $${\color{green}-0.44}$$ $${\color{green}-0.12}$$ -
5 - $${\color{green}-0.64}$$ $${\color{green}-0.16}$$ -
10 - $${\color{green}-1.25}$$ $${\color{green}-0.30}$$ $${\color{green}-0.02}$$

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 - - $${\color{green}-0.06}$$ $${\color{green}-0.02}$$ -
2 - - $${\color{green}-0.12}$$ $${\color{green}-0.04}$$ -
3 - - $${\color{green}-0.11}$$ $${\color{green}-0.04}$$ -
4 - - +4.34 +1.03 +0.04
5 - - $${\color{green}-4.80}$$ $${\color{green}-1.17}$$ $${\color{green}-0.04}$$
6 - - +2.69 +0.61 +0.03
7 - - $${\color{green}-8.91}$$ $${\color{green}-2.19}$$ $${\color{green}-0.09}$$
8 - - $${\color{green}-2.79}$$ $${\color{green}-0.73}$$ $${\color{green}-0.03}$$
9 - - $${\color{green}-4.15}$$ $${\color{green}-1.08}$$ $${\color{green}-0.04}$$

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 +31 +0.34 +0.08 -
2 +31 +0.33 +0.08 +0.01
3 +31 $${\color{green}-0.41}$$ $${\color{green}-0.10}$$ $${\color{green}-0.01}$$
5 +31 +0.42 +0.1 -
10 +31 +0.5 +0.12 +0.01
43 +31 +0.29 +0.08 +0.01

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - $${\color{green}-0.27}$$ $${\color{green}-0.07}$$ -
3 - $${\color{green}-0.04}$$ $${\color{green}-0.02}$$ -
5 - $${\color{green}-0.27}$$ $${\color{green}-0.07}$$ -
10 - +0.04 +0.01 -
40 - $${\color{green}-0.07}$$ $${\color{green}-0.02}$$ -

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - $${\color{green}-0.12}$$ $${\color{green}-0.03}$$ -
35 - +0.33 +0.08 +0.01

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - $${\color{green}-0.12}$$ $${\color{green}-0.03}$$ -
29 - $${\color{green}-0.04}$$ $${\color{green}-0.01}$$ -

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) - - - - -

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