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.8 #1822

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

cardano-api: 10.8 #1822

wants to merge 1 commit into from

Conversation

locallycompact
Copy link
Contributor

No description provided.

@locallycompact locallycompact marked this pull request as draft February 3, 2025 15:42
@locallycompact locallycompact self-assigned this Feb 3, 2025
Copy link

github-actions bot commented Feb 3, 2025

Transaction cost differences

No cost or size differences found

Copy link

github-actions bot commented Feb 3, 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-02-10 17:39:10.918783387 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 10.98 3.42 0.53
2 6294 13.56 4.22 0.57
3 6496 15.50 4.80 0.60
5 6897 20.19 6.25 0.66
10 7903 30.97 9.53 0.82
40 13937 98.57 30.28 1.78

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 561 2.44 1.16 0.20
2 743 3.38 1.73 0.22
3 923 4.36 2.33 0.24
5 1283 6.41 3.60 0.28
10 2174 12.13 7.25 0.40
54 10074 98.61 68.52 1.88

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 26.47 7.60 0.44
2 114 636 35.90 10.22 0.54
3 171 747 43.39 12.40 0.62
4 227 858 50.37 14.47 0.70
5 282 974 64.02 18.15 0.84
6 338 1081 78.88 22.07 0.99
7 394 1192 75.62 21.64 0.97
8 452 1303 91.79 26.03 1.14
9 504 1418 94.71 27.02 1.17

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1804 25.42 8.32 0.49
2 1944 26.73 9.41 0.52
3 2063 28.26 10.55 0.55
5 2322 31.52 12.89 0.60
10 2979 39.44 18.68 0.73
40 7419 98.15 57.47 1.68

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 601 23.71 7.54 0.42
2 728 25.35 8.66 0.45
3 895 27.22 9.84 0.48
5 1304 32.84 12.70 0.56
10 2042 43.01 18.86 0.72
39 6292 98.32 53.43 1.61

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 640 30.95 9.67 0.50
2 817 31.02 10.44 0.51
3 965 35.45 12.47 0.57
5 1230 36.44 14.10 0.60
10 1989 49.44 21.51 0.79
35 5735 97.16 53.75 1.58

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 674 35.95 11.00 0.55
2 856 38.85 12.64 0.59
3 970 40.28 13.64 0.62
5 1227 44.55 16.24 0.68
10 2119 58.47 24.20 0.89
28 4586 98.62 48.39 1.50

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 5973 28.36 9.35 0.71
2 6104 37.52 12.36 0.81
3 6239 46.43 15.32 0.91
4 6402 57.38 18.93 1.03
5 6548 67.61 22.38 1.15
6 6776 78.55 25.97 1.27
7 6861 87.59 28.91 1.37
8 6871 93.26 30.74 1.43

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 21.79 7.29 0.65
10 5 284 6260 29.85 10.44 0.74
10 10 569 6431 41.42 14.88 0.88
10 30 1709 7112 84.49 31.56 1.37
10 37 2108 7350 98.94 37.19 1.54

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-02-10 17:42:09.657226334 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.457135860
P99 9.894133499999993ms
P95 6.927538550000003ms
P50 4.0164124999999995ms
Number of Invalid txs 0

| Memory data |

2025-02-10 17:40:45.582927507 UTC
Used: 978M, Free: 6006M
2025-02-10 17:40:50.582941146 UTC
Used: 1089M, Free: 5804M
2025-02-10 17:40:55.582867445 UTC
Used: 1092M, Free: 5801M
2025-02-10 17:41:00.582946342 UTC
Used: 1093M, Free: 5800M
2025-02-10 17:41:05.582907446 UTC
Used: 1096M, Free: 5797M
2025-02-10 17:41:10.582949397 UTC
Used: 1096M, Free: 5797M

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 23.358245023
P99 118.53817182ms
P95 30.39307075ms
P50 20.884020999999997ms
Number of Invalid txs 0

| Memory data |

2025-02-10 17:41:22.690761967 UTC
Used: 1033M, Free: 5870M
2025-02-10 17:41:27.690884737 UTC
Used: 1213M, Free: 5690M
2025-02-10 17:41:32.690895649 UTC
Used: 1224M, Free: 5679M
2025-02-10 17:41:37.690862315 UTC
Used: 1229M, Free: 5673M
2025-02-10 17:41:42.691129744 UTC
Used: 1261M, Free: 5572M
2025-02-10 17:41:47.690897274 UTC
Used: 1284M, Free: 5475M
2025-02-10 17:41:52.690855296 UTC
Used: 1284M, Free: 5474M
2025-02-10 17:41:57.690895733 UTC
Used: 1285M, Free: 5473M
2025-02-10 17:42:02.690887163 UTC
Used: 1287M, Free: 5470M
2025-02-10 17:42:07.690852712 UTC
Used: 1299M, Free: 5458M

@locallycompact
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo 📋
Development

Successfully merging this pull request may close these issues.

1 participant