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

Add docker image for hydra-chain-observer #1831

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

ch1bo
Copy link
Member

@ch1bo ch1bo commented Feb 6, 2025

This will be available as a flake output and built by CI into https://github.com/orgs/cardano-scaling/packages


  • CHANGELOG update not needed
  • Documentation update not needed
  • Haddocks update not needed
  • No new TODOs introduced

@ch1bo ch1bo requested a review from a team February 6, 2025 13:33
Copy link

github-actions bot commented Feb 6, 2025

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 - - - -
40 - - - -

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 - $${\color{green}-0.39}$$ $${\color{green}-0.09}$$ -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
37 - - - -

Cost of Decrement Transaction

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

Close transaction costs

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

Contest transaction costs

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

FanOut transaction costs

UTxO, Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
(0, 10) - - - - -
(1, 10) - - - - -
(5, 10) - - - - -
(10, 10) - - - - -
(20, 10) - - - - -
(37, 10) - - - - -

Copy link

github-actions bot commented Feb 6, 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 08:01:13.198012015 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 10.80 3.35 0.53
2 6295 13.13 4.07 0.56
3 6493 15.77 4.90 0.60
5 6898 19.98 6.17 0.66
10 7904 31.58 9.75 0.82
40 13933 98.18 30.14 1.77

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 736 3.38 1.73 0.22
3 920 4.36 2.33 0.24
5 1283 6.41 3.60 0.28
10 2183 12.13 7.25 0.40
54 10067 98.61 68.52 1.88

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 26.44 7.58 0.44
2 114 636 35.86 10.21 0.54
3 169 747 45.99 13.04 0.65
4 225 858 52.05 14.90 0.72
5 284 969 59.08 16.92 0.79
6 339 1081 72.59 20.52 0.93
7 395 1192 88.65 24.84 1.10
8 448 1303 92.33 26.27 1.14

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1815 25.03 8.22 0.49
2 1933 27.16 9.50 0.52
3 2105 29.58 11.00 0.56
5 2446 34.20 13.82 0.63
10 2986 39.68 18.74 0.74
37 7364 98.02 55.95 1.67

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 627 23.71 7.55 0.42
2 753 24.89 8.50 0.45
3 930 28.53 10.19 0.50
5 1127 29.63 11.81 0.52
10 2013 43.76 19.03 0.73
38 6109 96.50 52.25 1.58

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 677 29.15 9.20 0.48
2 815 30.98 10.43 0.51
3 933 34.79 12.18 0.56
5 1317 40.76 15.61 0.65
10 2208 49.52 22.03 0.81
33 5543 96.06 52.15 1.55

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 670 35.95 11.00 0.55
2 882 38.81 12.63 0.59
3 900 39.58 13.32 0.61
5 1271 45.62 16.70 0.70
10 2096 58.22 24.07 0.89
26 4568 98.11 47.40 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 5986 28.16 9.29 0.71
2 6189 38.40 12.72 0.82
3 6375 48.98 16.25 0.94
4 6376 57.49 18.98 1.03
5 6560 66.81 22.13 1.14
6 6579 71.98 23.69 1.19
7 6872 89.04 29.48 1.38
8 6757 88.82 29.27 1.38

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 6091 20.78 6.84 0.64
10 5 284 6260 29.85 10.44 0.74
10 20 1139 6770 63.18 23.30 1.13
10 30 1708 7111 84.03 31.40 1.37
10 37 2105 7347 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-02-10 08:03:58.657044888 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.681834693
P99 10.537809539999985ms
P95 6.481732350000002ms
P50 4.389282ms
Number of Invalid txs 0

| Memory data |

2025-02-10 08:02:33.840150793 UTC
Used: 956M, Free: 2228M
2025-02-10 08:02:38.84012018 UTC
Used: 1011M, Free: 2152M
2025-02-10 08:02:43.840022585 UTC
Used: 1008M, Free: 2154M
2025-02-10 08:02:48.839983773 UTC
Used: 1008M, Free: 2154M
2025-02-10 08:02:53.840076044 UTC
Used: 1012M, Free: 2149M
2025-02-10 08:02:58.840014819 UTC
Used: 1012M, Free: 2149M

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 24.122747783
P99 118.51693323ms
P95 32.316327ms
P50 21.259672000000002ms
Number of Invalid txs 0

| Memory data |

2025-02-10 08:03:11.686652335 UTC
Used: 929M, Free: 2244M
2025-02-10 08:03:16.686767681 UTC
Used: 1144M, Free: 2028M
2025-02-10 08:03:21.686773568 UTC
Used: 1155M, Free: 2017M
2025-02-10 08:03:26.686763484 UTC
Used: 1154M, Free: 2016M
2025-02-10 08:03:31.686671953 UTC
Used: 1198M, Free: 1903M
2025-02-10 08:03:36.686785743 UTC
Used: 1218M, Free: 1803M
2025-02-10 08:03:41.686716796 UTC
Used: 1218M, Free: 1802M
2025-02-10 08:03:46.686720493 UTC
Used: 1393M, Free: 1603M
2025-02-10 08:03:51.68671996 UTC
Used: 1380M, Free: 1614M
2025-02-10 08:03:56.686790156 UTC
Used: 1261M, Free: 1733M

Copy link

github-actions bot commented Feb 6, 2025

Test Results

  5 files  ±0  165 suites  ±0   32m 5s ⏱️ +45s
564 tests ±0  562 ✅ ±0  2 💤 ±0  0 ❌ ±0 
566 runs  ±0  564 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit c7d7845. ± Comparison against base commit f971747.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the docker-hydra-chain-observer branch from 51bb517 to c7d7845 Compare February 6, 2025 18:10
@ch1bo ch1bo linked an issue Feb 10, 2025 that may be closed by this pull request
4 tasks
This will be available as a flake output and built by CI into https://github.com/orgs/cardano-scaling/packages
@ch1bo ch1bo force-pushed the docker-hydra-chain-observer branch from c7d7845 to cc8f1dd Compare February 10, 2025 07:59
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.

Nice!

@noonio noonio added this pull request to the merge queue Feb 10, 2025
Merged via the queue into master with commit 6b11f5f Feb 10, 2025
24 checks passed
@noonio noonio deleted the docker-hydra-chain-observer branch February 10, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ✔
Development

Successfully merging this pull request may close these issues.

Hydra explorer supporting multiple hydra versions
2 participants