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

Refactor connectivity #1396

Merged
merged 1 commit into from
Apr 29, 2024
Merged

Refactor connectivity #1396

merged 1 commit into from
Apr 29, 2024

Conversation

locallycompact
Copy link
Contributor

@locallycompact locallycompact commented Apr 16, 2024


  • CHANGELOG updated or not needed
  • Documentation updated or not needed
  • Haddocks updated or not needed
  • No new TODOs introduced or explained herafter

@locallycompact locallycompact marked this pull request as draft April 16, 2024 15:46
@locallycompact locallycompact force-pushed the refactor-connectivity branch 2 times, most recently from f9caa87 to 1f23b92 Compare April 16, 2024 17:47
Copy link

github-actions bot commented Apr 17, 2024

Transactions 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 2024-04-29 13:04:56.734619399 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial bccf2a430c016bc960fbf31b02694011cd399d20da8882aac9d33611 4110
νCommit 56b0f0b597150e619c76bed60683f3b1e42d7bc0685ed951b882bfc5 1975
νHead 86bff95ba20e9d1d1b34899a56d86bbacc9fed999260b27dcc92d128 9351
μHead 88f533cf67cd0fc93d7d9ccf0a8b1d69ffd1208a825efbebbc1d36ba* 4213
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per Head.

Cost of Init Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 4794 8.82 3.37 0.46
2 4993 10.61 4.05 0.48
3 5197 12.64 4.83 0.52
5 5600 16.64 6.37 0.58
10 6609 26.22 10.05 0.73
48 14244 99.77 38.28 1.86

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 556 10.24 4.04 0.29
2 749 13.88 5.64 0.34
3 934 17.66 7.29 0.39
5 1306 25.66 10.74 0.49
10 2241 48.19 20.30 0.78
19 3930 97.83 40.79 1.41

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 548 16.52 6.53 0.35
2 114 654 26.34 10.52 0.47
3 170 764 38.23 15.38 0.60
4 226 874 50.53 20.51 0.74
5 282 984 68.99 27.99 0.95
6 338 1095 87.84 35.74 1.17

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 591 8.34 4.61 0.28
2 719 8.96 5.64 0.29
3 820 9.25 6.37 0.31
5 863 10.50 5.33 0.31
10 1946 15.77 15.13 0.47
50 7827 49.10 61.86 1.34

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 627 8.65 4.73 0.28
2 750 9.42 5.82 0.30
3 891 10.15 6.89 0.32
5 1252 11.85 9.34 0.37
10 1997 16.68 15.58 0.49
50 8045 50.58 63.02 1.37

Cost of Abort Transaction

Some variation because of random mixture of still initial and already committed outputs.

Parties Tx size % max Mem % max CPU Min fee ₳
1 4585 13.89 5.75 0.51
2 4855 28.73 12.60 0.69
3 4943 42.23 18.54 0.84
4 5095 57.79 25.43 1.02
5 5091 69.37 30.34 1.15
6 5399 98.21 43.28 1.49

Cost of FanOut Transaction

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 ₳
5 0 0 4627 8.06 3.37 0.44
5 1 57 4661 9.21 4.08 0.46
5 5 284 4797 13.40 6.75 0.52
5 10 569 4967 19.37 10.40 0.60
5 20 1139 5307 30.69 17.44 0.76
5 30 1710 5650 42.22 24.58 0.92
5 40 2273 5983 54.17 31.89 1.08
5 50 2848 6328 65.71 39.04 1.24
5 79 4499 7312 98.79 59.60 1.70

End-To-End Benchmark Results

This page is intended to collect the latest end-to-end benchmarks results produced by Hydra's Continuous Integration system from the latest master code.

Please take those results with a grain of salt as they are currently produced from very limited cloud VMs and not controlled hardware. Instead of focusing on the absolute results, the emphasis should be on relative results, eg. how the timings for a scenario evolve as the code changes.

Generated at 2024-04-29 13:08:10.136149205 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.700669019
P99 66.97462692000002ms
P95 32.38953219999999ms
P50 20.3626675ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 5.106288099
P99 9.116686489999983ms
P95 6.6316298999999965ms
P50 4.901659ms
Number of Invalid txs 0

Copy link

github-actions bot commented Apr 17, 2024

Test Results

424 tests  +1   415 ✅ +1   16m 1s ⏱️ + 1m 5s
138 suites ±0     9 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit d4a0b58. ± Comparison against base commit 4bbbe28.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the refactor-connectivity branch 2 times, most recently from d3cedde to 8c17113 Compare April 18, 2024 08:22
@ffakenz ffakenz force-pushed the refactor-connectivity branch from a5d9128 to 18db91f Compare April 19, 2024 09:21
@ffakenz ffakenz marked this pull request as ready for review April 19, 2024 09:21
Copy link
Member

@ch1bo ch1bo 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!

hydra-node/src/Hydra/HeadLogic.hs Show resolved Hide resolved
hydra-node/src/Hydra/HeadLogic/Input.hs Outdated Show resolved Hide resolved
hydra-node/test/Hydra/HeadLogicSpec.hs Show resolved Hide resolved
hydra-node/test/Hydra/HeadLogicSpec.hs Outdated Show resolved Hide resolved
@locallycompact locallycompact force-pushed the refactor-connectivity branch 5 times, most recently from 1fc8cc8 to 61e81a2 Compare April 29, 2024 09:12
@locallycompact locallycompact requested a review from ch1bo April 29, 2024 09:12
…received messages on the network.

Co-authored by Franco Testagrossa
@ffakenz ffakenz force-pushed the refactor-connectivity branch from 61e81a2 to d4a0b58 Compare April 29, 2024 12:59
@locallycompact locallycompact merged commit 980f608 into master Apr 29, 2024
21 checks passed
@locallycompact locallycompact deleted the refactor-connectivity branch April 29, 2024 14:14
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.

2 participants