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

cardano-api: 10.1 #1740

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

cardano-api: 10.1 #1740

wants to merge 1 commit into from

Conversation

locallycompact
Copy link
Contributor


  • CHANGELOG updated or not needed
  • Documentation updated or not needed
  • Haddocks updated or not needed
  • No new TODOs introduced or explained herafter

@locallycompact locallycompact force-pushed the lc/cardano-api-10.2 branch 4 times, most recently from bb45e4d to 359db28 Compare November 13, 2024 12:23
Copy link

github-actions bot commented Nov 13, 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-14 11:47:17.714158588 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.04 2.96 0.76
2 11919 10.70 3.49 0.79
3 12119 12.38 4.03 0.81
5 12526 15.80 5.14 0.87
10 13528 24.83 8.09 1.00
24 16343 49.44 16.08 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 737 3.40 1.74 0.22
3 923 4.39 2.34 0.24
5 1274 6.46 3.61 0.28
10 2177 12.24 7.28 0.40
54 10049 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 671 32.91 9.57 0.51
3 169 782 42.86 12.33 0.62
4 225 893 48.92 14.17 0.69
5 283 1004 55.66 16.18 0.76
6 338 1116 73.82 20.96 0.95
7 395 1227 73.38 21.26 0.95
8 450 1338 88.67 25.38 1.11
10 560 1560 96.45 27.85 1.20

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 664 22.59 7.30 0.41
2 763 24.12 8.39 0.44
3 933 25.61 9.48 0.47
5 1176 28.47 11.61 0.52
10 1907 36.32 17.12 0.65
42 6717 94.39 54.78 1.60

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 668 24.34 8.01 0.43
2 788 25.99 9.19 0.46
3 915 27.42 10.32 0.49
5 1264 31.06 12.92 0.55
10 2046 40.28 19.48 0.71
44 7049 98.55 61.59 1.70

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 682 30.43 9.63 0.50
2 820 32.36 10.89 0.53
3 984 34.71 12.38 0.56
5 1259 38.35 14.85 0.62
10 2055 49.30 21.88 0.80
34 5514 97.06 53.32 1.56

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.76 8.75 0.93
2 11720 34.12 11.61 1.03
3 11919 43.75 14.91 1.14
4 11956 48.68 16.56 1.19
5 12190 61.23 20.92 1.33
6 12292 70.07 23.92 1.43
7 12327 72.54 24.64 1.46
8 12611 85.59 29.20 1.61
9 12751 98.87 33.73 1.75
10 12679 97.82 33.13 1.74

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 18.07 6.20 0.86
10 1 57 11749 20.08 7.02 0.88
10 5 286 11885 25.50 9.34 0.95
10 10 568 12052 36.02 13.61 1.07
10 20 1138 12392 55.43 21.55 1.30
10 30 1710 12736 72.91 28.78 1.51
10 40 2274 13071 90.34 36.00 1.71
10 44 2504 13209 98.49 39.32 1.81

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-14 11:50:10.436841412 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.112521860
P99 9.450873329999977ms
P95 4.8488632ms
P50 3.8396055000000002ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 23.171029193
P99 117.10015376999999ms
P95 33.349286049999996ms
P50 20.3938775ms
Number of Invalid txs 0

Copy link

github-actions bot commented Nov 13, 2024

Transaction cost differences

Script summary

Name Size (Bytes)
νInitial -
νCommit -
νHead $${\color{green}-11.00}$$
μHead +22
νDeposit -

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 +22 0.01 - -
2 +22 0.02 - -
3 +22 0.02 - -
5 +22 0.02 - -
10 +22 0.02 - -
24 +22 0.02 - +0.01

Commit transaction costs

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

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 - - +0.14 +0.03 -
2 - - +2.16 +0.51 +0.02
3 - - $${\color{green}-1.13}$$ $${\color{green}-0.28}$$ $${\color{green}-0.01}$$
4 - - +1.74 +0.42 +0.02
5 - - $${\color{green}-0.89}$$ $${\color{green}-0.21}$$ $${\color{green}-0.01}$$
6 - - $${\color{green}-1.58}$$ $${\color{green}-0.38}$$ $${\color{green}-0.02}$$
7 - - $${\color{green}-7.87}$$ $${\color{green}-1.90}$$ $${\color{green}-0.08}$$
8 - - +10.86 +2.59 +0.11
9 - - $${\color{green}-1.64}$$ $${\color{green}-0.40}$$ $${\color{green}-0.01}$$

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - +0.09 +0.02 -
2 - $${\color{green}-0.18}$$ $${\color{green}-0.04}$$ -
3 - +0.04 +0.01 -
5 - +0.37 +0.08 +0.01
10 - +0.13 +0.03 -
45 - +0.09 +0.02 -

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - 0.11 +0.02 -
2 - 0.16 +0.03 -
3 - 0.07 +0.02 -
5 - 0.11 +0.03 -
10 - 0.03 - -

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - +0.15 +0.03 +0.01
2 - +0.2 +0.05 +0.01
3 - +0.15 +0.03 +0.01
5 - +0.15 +0.03 -
10 - $${\color{green}-0.02}$$ $${\color{green}-0.01}$$ -
34 - +0.15 +0.04 -

Abort transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 +22 $${\color{green}-0.04}$$ $${\color{green}-0.01}$$ -
2 +22 +0.04 +0.01 +0.01
3 +22 $${\color{green}-0.04}$$ $${\color{green}-0.01}$$ -
4 +22 +0.03 +0.01 -
5 +22 +0.18 +0.04 +0.01
6 +22 +0.08 +0.02 +0.01
7 +22 +0.66 +0.16 +0.01
8 +22 +0.06 +0.02 -
9 +22 +0.58 +0.14 +0.01
10 +22 $${\color{green}-0.14}$$ $${\color{green}-0.03}$$ -

FanOut transaction costs

Parties UTxO UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
10 - - +22 - - -
10 - - +22 - - -
10 - - +22 $${\color{green}-0.01}$$ - -
10 - - +22 - - -
10 - - +22 - - +0.01
10 - - +22 - - -
10 - - +22 $${\color{green}-0.01}$$ - -
10 - - +22 - - -

@locallycompact locallycompact force-pushed the lc/cardano-api-10.2 branch 6 times, most recently from 00d947c to b82d157 Compare November 14, 2024 10:05
@locallycompact locallycompact changed the title cardano-api: 10.2 cardano-api: 10.1 Nov 14, 2024
@locallycompact locallycompact force-pushed the lc/cardano-api-10.2 branch 3 times, most recently from c16c865 to 978e69e Compare November 14, 2024 10:46
Copy link

Test Results

  5 files  ±0  162 suites  ±0   28m 26s ⏱️ -3s
554 tests ±0  548 ✅ ±0  6 💤 ±0  0 ❌ ±0 
556 runs  ±0  550 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit bcab1cd. ± Comparison against base commit 27fc223.

@locallycompact locallycompact requested a review from a team November 14, 2024 12:03
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.

1 participant