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

Merged
merged 2 commits into from
Feb 3, 2025
Merged

cardano-api: 10.6 #1791

merged 2 commits into from
Feb 3, 2025

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.12 0.24 0.01
3 - 1.66 0.37 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-02-03 10:49:29.678950212 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 11.23 3.50 0.53
2 6296 13.65 4.25 0.57
3 6496 15.46 4.79 0.60
5 6898 20.19 6.25 0.66
10 7903 31.49 9.72 0.82
40 13935 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 740 3.38 1.73 0.22
3 920 4.36 2.33 0.24
5 1283 6.41 3.60 0.28
10 2173 12.13 7.25 0.40
54 10058 98.61 68.52 1.88

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 25.64 7.39 0.43
2 114 636 35.90 10.22 0.54
3 170 747 45.81 13.01 0.65
4 227 858 53.73 15.30 0.73
5 283 969 61.06 17.42 0.81
6 339 1085 67.43 19.37 0.88
7 393 1192 82.07 23.22 1.03

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1748 24.01 7.84 0.48
2 1951 27.16 9.52 0.52
3 2169 30.21 11.30 0.57
5 2393 32.98 13.39 0.62
10 3217 43.49 20.23 0.79
38 7438 99.61 57.02 1.69

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 596 23.95 7.60 0.42
2 696 23.76 8.19 0.43
3 968 28.32 10.14 0.49
5 1228 33.13 12.78 0.56
10 2012 43.71 19.03 0.73
38 6140 99.90 53.13 1.61

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 661 30.91 9.67 0.50
2 779 30.32 10.13 0.50
3 956 35.32 12.44 0.57
5 1311 37.80 14.71 0.62
10 2089 47.96 21.37 0.78
31 5316 99.16 51.82 1.56

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 697 35.95 11.01 0.55
2 814 38.11 12.31 0.58
3 1108 41.73 14.29 0.64
5 1374 46.78 17.21 0.71
10 2065 58.18 24.05 0.88
27 4570 98.49 48.03 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 5999 28.16 9.30 0.71
2 6111 37.52 12.36 0.81
3 6359 49.14 16.30 0.94
4 6384 57.60 19.01 1.03
5 6484 66.32 21.90 1.13
6 6529 71.40 23.49 1.18
7 6591 79.01 25.96 1.27
8 7008 98.60 32.61 1.49

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 6126 22.91 7.67 0.66
10 5 285 6261 29.39 10.28 0.74
10 10 569 6431 42.34 15.19 0.88
10 20 1137 6768 62.72 23.14 1.12
10 30 1705 7109 83.57 31.25 1.36
10 37 2109 7352 97.56 36.72 1.53

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-03 10:51:54.656305776 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 5.679757230
P99 12.165577909999959ms
P95 7.7161022ms
P50 5.304921ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 24.894545351
P99 114.01744794999995ms
P95 33.15534235ms
P50 22.776727ms
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   33m 6s ⏱️ + 1m 48s
563 tests ±0  561 ✅ ±0  2 💤 ±0  0 ❌ ±0 
565 runs  ±0  563 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 8082363. ± Comparison against base commit fc926ab.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the lc/cardano-api-10.6 branch 3 times, most recently from 463846b to 9c45796 Compare February 3, 2025 09:31
Copy link
Contributor

@v0d1ch v0d1ch left a comment

Choose a reason for hiding this comment

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

Looks good, only a leftover commented import

@locallycompact locallycompact added this pull request to the merge queue Feb 3, 2025
Merged via the queue into master with commit d2f6333 Feb 3, 2025
27 checks passed
@locallycompact locallycompact deleted the lc/cardano-api-10.6 branch February 3, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants