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-12-02 11:49:44.627772905 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 11717 8.70 2.83 0.76
2 11918 10.63 3.46 0.79
3 12123 12.77 4.18 0.82
5 12521 16.07 5.24 0.87
10 13529 24.59 7.99 1.00
24 16341 49.30 16.02 1.38

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 561 2.45 1.17 0.20
2 741 3.40 1.74 0.22
3 923 4.39 2.34 0.24
5 1274 6.46 3.61 0.28
10 2182 12.24 7.28 0.40
54 10065 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 113 671 33.75 9.75 0.52
3 170 782 40.90 11.86 0.60
4 228 893 47.81 13.95 0.68
5 283 1004 60.19 17.27 0.81
6 341 1116 65.12 18.84 0.86
7 395 1227 78.24 22.37 1.00
8 449 1342 96.83 27.23 1.19
9 504 1449 87.38 25.35 1.10

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 624 22.35 7.24 0.41
2 791 23.80 8.32 0.44
3 902 24.79 9.23 0.46
5 1302 30.63 12.21 0.54
10 1970 38.32 17.68 0.67
41 6738 98.34 55.20 1.64

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 644 24.43 8.03 0.43
2 780 25.99 9.19 0.46
3 1009 28.64 10.89 0.50
5 1131 30.01 12.37 0.53
10 2004 40.72 19.58 0.71
44 7094 99.29 62.03 1.71

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 695 30.42 9.64 0.50
2 840 32.36 10.90 0.53
3 1020 34.71 12.40 0.56
5 1159 37.30 14.31 0.61
10 2091 49.57 21.96 0.80
34 5575 98.42 53.86 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 11600 25.76 8.75 0.93
2 11775 35.07 11.98 1.04
3 11751 38.53 13.00 1.07
4 11910 47.95 16.29 1.18
5 12112 57.47 19.65 1.29
6 12277 69.78 23.81 1.43
7 12419 78.86 26.84 1.53
8 12543 87.89 29.98 1.63
9 12678 90.21 30.80 1.66

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.71 6.07 0.85
10 1 57 11748 19.72 6.89 0.88
10 5 286 11886 26.60 9.74 0.96
10 10 569 12053 36.02 13.61 1.07
10 20 1140 12394 54.90 21.36 1.29
10 30 1705 12731 72.86 28.77 1.51
10 40 2278 13074 92.53 36.81 1.74
10 44 2505 13209 99.58 39.72 1.82

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-12-02 11:52:52.446837175 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 5.203546503
P99 10.164401919999998ms
P95 7.3871618ms
P50 4.7967405ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 25.007633280
P99 114.70126577ms
P95 33.278651549999985ms
P50 22.831028ms
Number of Invalid txs 0

Copy link

github-actions bot commented Nov 26, 2024

Test Results

  5 files  ±0  162 suites  ±0   30m 47s ⏱️ -19s
555 tests ±0  548 ✅ ±0  7 💤 ±0  0 ❌ ±0 
557 runs  ±0  550 ✅ ±0  7 💤 ±0  0 ❌ ±0 

Results for commit 2b20fb7. ± Comparison against base commit 3748690.

♻️ 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 :)

@locallycompact locallycompact force-pushed the lc/collateralInputLines branch 3 times, most recently from 32a241c to fafe435 Compare December 2, 2024 11:42
@locallycompact locallycompact force-pushed the lc/collateralInputLines branch from fafe435 to 2b20fb7 Compare December 2, 2024 11:42
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