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

renderTxWithUTxO: add collateral and fee fields #1749

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

Conversation

locallycompact
Copy link
Contributor

No description provided.

@locallycompact locallycompact requested a review from a team November 26, 2024 11:08
Copy link

Transaction cost differences

No cost or size differences found

Copy link

github-actions bot commented Nov 26, 2024

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 2024-11-26 14:50:25.318726993 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 00a6ddbc130ab92f5b7cb8d1ccd8d79eca5bfe25f6843c07b62841f0 2667
νCommit 3e5a776bcee213e3dfd15806952a10ac5590e3e97d09d62eb99266b2 690
νHead 8fc2a74df32d01d1db56b3acb561831ef9c9970123079423abfcb86e 12622
μHead c40e78e78083a4c137734abe9ac4070cc978842e9755fe88e0c7b922* 11133
νDeposit 2feb47889a4f658dc593cefcb0e37d584b9431944f08a687f3dab4af 4865
  • 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 11715 9.01 2.95 0.76
2 11918 10.46 3.40 0.78
3 12117 12.77 4.18 0.82
5 12519 16.11 5.26 0.87
10 13525 24.76 8.06 1.00
24 16347 49.46 16.08 1.39

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 563 2.45 1.17 0.20
2 743 3.40 1.74 0.22
3 923 4.39 2.34 0.24
5 1283 6.46 3.61 0.29
10 2179 12.24 7.28 0.40
54 10060 99.20 68.72 1.89

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 560 24.08 7.04 0.42
2 114 675 32.92 9.57 0.51
3 170 782 40.74 11.80 0.60
4 226 893 52.95 15.11 0.73
5 283 1004 59.12 17.05 0.79
6 340 1116 74.01 20.98 0.95
7 393 1227 79.39 22.66 1.01
8 451 1338 88.43 25.32 1.11
9 505 1449 88.46 25.79 1.11

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 630 22.63 7.30 0.41
2 771 23.76 8.30 0.44
3 924 24.88 9.25 0.46
5 1214 28.70 11.66 0.52
10 1962 37.23 17.38 0.66
43 6929 97.67 56.37 1.65

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 598 23.82 7.74 0.42
2 783 25.86 9.16 0.46
3 998 28.11 10.64 0.50
5 1135 30.05 12.38 0.53
10 2054 40.67 19.59 0.71
44 7156 99.52 62.30 1.72

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 630 29.86 9.35 0.49
2 834 32.28 10.88 0.53
3 970 34.14 12.12 0.56
5 1313 39.08 15.17 0.63
10 1903 47.83 21.09 0.77
34 5620 98.54 53.92 1.58

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 11592 25.67 8.73 0.93
2 11678 31.17 10.55 0.99
3 11909 43.32 14.79 1.13
4 12081 52.85 18.05 1.24
5 12106 57.53 19.57 1.29
6 12214 65.82 22.36 1.38
7 12243 67.83 22.96 1.40
8 12611 89.22 30.55 1.65
9 12792 99.34 33.91 1.76

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 11714 17.50 5.99 0.85
10 1 57 11748 19.56 6.83 0.87
10 5 285 11884 26.96 9.88 0.96
10 10 570 12055 37.27 14.07 1.08
10 20 1139 12393 55.11 21.43 1.30
10 30 1707 12733 73.64 29.05 1.51
10 40 2273 13070 91.96 36.60 1.73
10 44 2505 13209 99.95 39.85 1.83

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 2024-11-26 14:53:46.441021638 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.393220856
P99 7.210112739999994ms
P95 5.5110039ms
P50 4.2233345ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 24.413156887
P99 62.329841389999615ms
P95 35.57095045ms
P50 21.94021ms
Number of Invalid txs 0

Copy link

github-actions bot commented Nov 26, 2024

Test Results

  5 files  ±0  162 suites  ±0   33m 47s ⏱️ + 1m 7s
555 tests ±0  548 ✅ ±0  7 💤 ±0  0 ❌ ±0 
557 runs  ±0  550 ✅ ±0  7 💤 ±0  0 ❌ ±0 

Results for commit 32a241c. ± Comparison against base commit 8582200.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the lc/collateralInputLines branch 2 times, most recently from a42125a to f7fadff Compare November 26, 2024 12:53
@locallycompact locallycompact changed the title renderTxWithUTxO: add collateralInputLines renderTxWithUTxO: add collateral and fee fields Nov 26, 2024
@noonio
Copy link
Contributor

noonio commented Nov 26, 2024

@locallycompact can you please update the description to describe what brought about this change/etc, thanks :)

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.

2 participants