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.6 #1791

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

cardano-api: 10.6 #1791

wants to merge 1 commit into from

Conversation

locallycompact
Copy link
Contributor

No description provided.

@locallycompact locallycompact force-pushed the lc/cardano-api-10.6 branch 6 times, most recently from 56f9900 to 849a996 Compare January 17, 2025 17:55
@locallycompact
Copy link
Contributor Author

@noonio Mostly there but hit some surprising plutus errors in CI.

@locallycompact locallycompact force-pushed the lc/cardano-api-10.6 branch 7 times, most recently from 4c7958c to 5815101 Compare January 20, 2025 20:09
Copy link

github-actions bot commented Jan 20, 2025

Transaction cost differences

Script summary

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

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 $${\color{green}-71.00}$$ 0.87 0.2 -
2 $${\color{green}-71.00}$$ 1 0.22 -
3 $${\color{green}-71.00}$$ 1.21 0.27 -
5 $${\color{green}-71.00}$$ 1.67 0.38 +0.01
10 $${\color{green}-71.00}$$ 2.64 0.59 +0.02

Commit transaction costs

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

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 - - 1.44 0.32 0.01
2 - - 1.91 0.42 0.02
3 - - 3.6 0.82 0.04
4 - - 3.3 0.75 0.03
5 - - 1.45 0.3 0.01
6 - - 5.5 1.26 0.05
7 - - 2.25 0.47 0.02
8 - - 7.37 1.69 0.07

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - 0.98 0.22 0.01
2 - 1.51 0.33 0.02
3 - 1.27 0.28 0.02
5 - 2.13 0.48 0.02
10 - 3.15 0.71 0.03

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - 1.27 0.29 0.02
2 - 1.52 0.34 0.02
3 - 1.62 0.36 0.02
5 - 1.57 0.35 0.02
10 - 2.73 0.6 0.02

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - 2.16 0.48 0.02
2 - 2.34 0.53 0.02
3 - 2.61 0.59 0.02
5 - 2.78 0.63 0.03
10 - 4.06 0.91 0.04

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - 2.6 0.58 0.02
2 - 2.81 0.63 0.02
3 - 2.93 0.66 0.03
5 - 3.55 0.8 0.03
10 - 4.95 1.11 0.04

FanOut transaction costs

UTxO, Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
(0, 10) - $${\color{green}-71.00}$$ 2 0.44 0.01
(1, 10) - $${\color{green}-71.00}$$ 2.45 0.55 0.02
(5, 10) - $${\color{green}-71.00}$$ 2.95 0.66 0.02
(10, 10) - $${\color{green}-71.00}$$ 3.71 0.83 0.03
(20, 10) - $${\color{green}-71.00}$$ 5.38 1.21 0.04

@locallycompact locallycompact force-pushed the lc/cardano-api-10.6 branch 3 times, most recently from b886eee to 453ea3f Compare January 21, 2025 13:06
Copy link

github-actions bot commented Jan 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-01-24 11:56:39.581160561 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 6094 11.23 3.50 0.53
2 6292 13.04 4.04 0.56
3 6496 15.50 4.80 0.60
5 6895 20.19 6.25 0.66
10 7907 31.36 9.67 0.82
40 13936 98.79 30.35 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 1278 6.41 3.60 0.28
10 2182 12.13 7.25 0.40
54 10066 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 113 640 35.97 10.25 0.54
3 170 747 43.14 12.35 0.62
4 227 858 50.39 14.50 0.70
5 284 969 59.44 17.07 0.80
6 337 1081 73.00 20.70 0.94
7 397 1192 78.41 22.39 1.00
8 450 1303 86.81 24.75 1.09

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1800 25.50 8.33 0.50
2 1920 26.68 9.39 0.52
3 2209 30.29 11.34 0.57
5 2341 31.96 13.00 0.61
10 3209 44.66 20.56 0.80
37 7094 93.63 54.19 1.61

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 613 23.68 7.54 0.42
2 796 26.82 9.06 0.47
3 934 28.17 10.10 0.49
5 1183 31.36 12.31 0.54
10 2042 43.15 18.88 0.72
36 5988 98.41 51.40 1.58

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 664 30.91 9.68 0.50
2 895 31.64 10.74 0.52
3 1013 33.48 11.97 0.55
5 1270 37.10 14.40 0.61
10 1917 48.90 21.23 0.78
33 5465 99.47 52.97 1.58

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 695 35.91 11.00 0.55
2 801 38.15 12.32 0.58
3 1001 41.07 13.96 0.63
5 1204 44.63 16.25 0.68
10 2023 56.70 23.43 0.87
27 4510 98.42 47.87 1.49

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.20 9.30 0.71
2 6110 37.47 12.36 0.81
3 6216 46.96 15.46 0.91
4 6464 58.13 19.28 1.04
5 6687 69.82 23.21 1.18
6 6641 73.48 24.27 1.21
7 6824 88.11 29.11 1.37
8 6878 92.29 30.41 1.42
9 6934 98.21 32.35 1.48

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 6092 19.40 6.38 0.62
10 1 57 6125 21.79 7.29 0.65
10 5 285 6262 30.77 10.75 0.75
10 10 569 6430 40.70 14.64 0.87
10 20 1137 6768 62.72 23.14 1.12
10 37 2109 7351 98.48 37.03 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-01-24 11:59:20.65494929 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.396035800
P99 9.252463729999993ms
P95 5.7543849499999995ms
P50 4.153285ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 22.067600147
P99 36.72878359ms
P95 28.980727249999997ms
P50 20.571375ms
Number of Invalid txs 0

@locallycompact locallycompact force-pushed the lc/cardano-api-10.6 branch 5 times, most recently from c3055c6 to 4f94175 Compare January 21, 2025 14:25
@locallycompact locallycompact changed the title WIP: cardano-api: 10.6 cardano-api: 10.6 Jan 21, 2025
Copy link

github-actions bot commented Jan 21, 2025

Test Results

  5 files  ±0  165 suites  ±0   31m 16s ⏱️ +51s
563 tests ±0  561 ✅ ±0  2 💤 ±0  0 ❌ ±0 
565 runs  ±0  563 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit f0d0428. ± Comparison against base commit f339ed1.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact requested a review from a team January 21, 2025 14:53
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