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 -> 10.4 #1760

Merged
merged 3 commits into from
Jan 2, 2025
Merged

cardano-api: 10.1 -> 10.4 #1760

merged 3 commits into from
Jan 2, 2025

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

Copy link

github-actions bot commented Dec 7, 2024

Transaction cost differences

Script summary

Name Size (Bytes)
νInitial -
νCommit -
νHead -
μHead -
νDeposit -

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
44 - - - -

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 - - - - -
2 - - - - -
3 - - - - -
4 - - - - -
5 - - - - -
6 - - - - -
7 - - - - -
8 - - - - -

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - +0.38 +0.09 -
3 - - - -
5 - - - -
10 - - - -
43 - - - -

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
45 - - - -

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
41 - - - -

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
33 - - - -

Abort transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
4 - - - -
5 - - - -
6 - - - -
7 - - - -
8 - - - -
9 - - - -
10 - - - -

Copy link

github-actions bot commented Dec 7, 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 2025-01-02 13:20:11.630204606 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 5350e9d521552ebfd9e846fd70c3b801f716fc14296134ec0fb71e97 14495
μHead 482c3ce15cde05bc905b915ccfa2546e500be1c5d722389026c37aa3* 5615
νDeposit de09cec5f84eedaf64186cb52ba4ee6e74e6fc368af25b90d457f352 1118
  • 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 6197 10.41 3.33 0.53
2 6401 12.04 3.82 0.56
3 6602 14.09 4.46 0.59
5 7008 18.52 5.87 0.65
10 8007 28.42 8.97 0.80
44 14843 98.81 31.15 1.83

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 740 3.40 1.74 0.22
3 920 4.39 2.34 0.24
5 1283 6.46 3.61 0.29
10 2170 12.24 7.28 0.40
54 10062 99.20 68.72 1.89

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 564 24.20 7.07 0.42
2 114 671 32.08 9.36 0.51
3 170 782 42.04 12.11 0.61
4 225 893 50.45 14.51 0.70
5 284 1004 59.10 16.97 0.79
6 338 1116 65.44 18.87 0.86
7 396 1227 71.82 20.88 0.93
8 452 1338 95.68 26.98 1.18

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1797 23.13 7.64 0.47
2 1996 25.18 9.06 0.51
3 2241 28.37 10.90 0.56
5 2391 29.63 12.47 0.58
10 3089 38.10 18.55 0.73
41 7762 95.31 58.24 1.68

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 628 22.72 7.32 0.41
2 791 23.47 8.19 0.43
3 942 26.71 9.78 0.48
5 1292 30.43 12.17 0.54
10 2087 43.05 18.99 0.73
44 6742 94.68 56.17 1.62

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 725 27.03 8.74 0.46
2 872 28.64 9.91 0.49
3 994 32.62 11.84 0.54
5 1259 33.48 13.43 0.57
10 2064 43.70 20.33 0.74
40 6552 99.22 58.82 1.66

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 658 32.78 10.14 0.52
2 804 34.77 11.41 0.55
3 989 37.33 12.97 0.59
5 1266 41.25 15.51 0.65
10 2103 52.95 22.81 0.84
32 5355 99.28 52.51 1.57

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 6118 26.09 8.83 0.69
2 6213 34.81 11.78 0.79
3 6415 44.69 15.24 0.90
4 6457 49.44 16.71 0.95
5 6592 55.81 18.86 1.03
6 6796 67.76 22.93 1.16
7 6704 71.67 24.12 1.20
8 7069 89.98 30.52 1.41
9 7146 95.43 32.30 1.47

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 6231 19.99 6.94 0.64
10 10 570 6537 36.88 13.76 0.84
10 20 1139 6877 56.83 21.77 1.07
10 30 1708 7217 76.79 29.78 1.30
10 42 2390 7624 99.94 39.10 1.58

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-02 13:23:00.641737456 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.971457820
P99 12.526911399999994ms
P95 7.7968572ms
P50 4.485623ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 23.967064586
P99 115.22617161ms
P95 30.98271844999998ms
P50 21.6886135ms
Number of Invalid txs 0

Copy link

github-actions bot commented Dec 7, 2024

Test Results

  5 files  ±0  165 suites  ±0   31m 35s ⏱️ - 1m 25s
563 tests ±0  557 ✅ ±0  6 💤 ±0  0 ❌ ±0 
565 runs  ±0  559 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit 9329c74. ± Comparison against base commit c3fe7c1.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the lc/cardano-api-10.4 branch 4 times, most recently from e76fdf8 to 67f1485 Compare December 8, 2024 10:15
@locallycompact locallycompact requested a review from a team December 8, 2024 12:30
@locallycompact locallycompact linked an issue Dec 8, 2024 that may be closed by this pull request
@locallycompact locallycompact changed the title cardano-api: 10.1 -> 10.4 cardano-api: 10.1 -> 10.5 Jan 2, 2025
@locallycompact locallycompact force-pushed the lc/cardano-api-10.4 branch 2 times, most recently from 8aeeb5d to 9329c74 Compare January 2, 2025 13:11
@locallycompact locallycompact changed the title cardano-api: 10.1 -> 10.5 cardano-api: 10.1 -> 10.4 Jan 2, 2025
Copy link
Contributor

@noonio noonio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Overall seems simpler; so that's a win :) thanks!

@locallycompact locallycompact added this pull request to the merge queue Jan 2, 2025
Merged via the queue into master with commit e51a0d9 Jan 2, 2025
50 of 53 checks passed
@locallycompact locallycompact deleted the lc/cardano-api-10.4 branch January 2, 2025 16:38
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.

cardano-api: 10.1 -> 10.4
2 participants