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

Create a github action to build cardano-node binaries #1233

Merged
merged 5 commits into from
Jan 9, 2024

Conversation

ch1bo
Copy link
Member

@ch1bo ch1bo commented Jan 4, 2024

This is neede as the upstream project did not publish their binaries for at least version 8.7.2.

  • Add a workflow building static linux and dynamic macos binaries of cardano-node and cardano-cli on demand (manual dispatch). An example run for a successful build: https://github.com/input-output-hk/hydra/actions/runs/7447617327

  • Update tutorial to point to the (to be) locations of where to download cardano-node

  • Using zip archives (for now) to be consistent with Hydra, although they do not retain permissions.


  • 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 Jan 4, 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-01-08 14:42:55.538959654 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 985245919fcc6c0c5cd116023cd2c947c43e80dcbb5075fe12433fbb 4072
νCommit 7cb20fa71eb4c563ca283566ebe0aa65859d96c3f8cba35c52c181fd 2043
νHead 7a36661f5c15e9f1783aeaab890812c59b7286cbbc6de762d3110772 8816
μHead 8b111ac12274e46314769295a1c5dcab1d260096fc469fd698065463* 3851
  • 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 4374 10.46 4.04 0.46
2 4575 12.57 4.83 0.49
3 4776 14.73 5.65 0.52
5 5180 19.33 7.40 0.59
10 6185 30.41 11.60 0.75
41 12417 98.92 37.55 1.77

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 534 11.37 4.44 0.30
2 720 15.04 6.07 0.35
3 909 18.85 7.75 0.40
5 1288 26.90 11.27 0.51
10 2225 49.55 20.97 0.80
19 3903 99.43 41.75 1.43

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 480 21.78 8.51 0.41
2 114 590 34.12 13.43 0.55
3 170 700 46.10 18.35 0.69
4 226 810 60.51 24.25 0.85
5 282 920 82.55 33.06 1.10
6 340 1031 98.09 39.59 1.27

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 490 16.23 7.33 0.36
2 780 18.49 9.36 0.40
3 844 19.82 10.59 0.42
5 1248 23.23 13.83 0.49
10 2208 32.66 22.37 0.67
50 8843 97.85 83.24 1.93

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 516 19.78 8.60 0.39
2 697 21.85 10.34 0.43
3 975 24.32 12.45 0.48
5 1283 27.88 15.52 0.54
10 2204 37.59 23.90 0.72
42 7531 97.06 75.50 1.81

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 4307 18.98 8.16 0.55
2 4493 31.83 13.88 0.71
3 4719 47.88 21.03 0.90
4 4858 66.10 29.12 1.11
5 4951 80.66 35.38 1.27

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 4205 8.05 3.37 0.42
5 1 57 4239 9.49 4.22 0.44
5 5 285 4375 14.40 7.27 0.51
5 10 569 4545 20.55 11.08 0.60
5 20 1139 4885 32.43 18.53 0.76
5 30 1707 5225 45.15 26.34 0.93
5 40 2277 5564 57.46 33.97 1.10
5 50 2844 5902 69.56 41.52 1.27
5 74 4213 6719 99.34 59.96 1.68

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-01-08 14:45:35.043001955 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 24.609815048
P99 118.77443266000004ms
P95 35.06367384999999ms
P50 21.2687145ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.636362632
P99 8.13947386999998ms
P95 5.739882049999995ms
P50 4.454672ms
Number of Invalid txs 0

@ch1bo ch1bo force-pushed the cardano-node-github-workflow branch 2 times, most recently from 79e9896 to e14531b Compare January 4, 2024 09:03
Copy link

github-actions bot commented Jan 4, 2024

Test Results

393 tests  ±0   385 ✅ ±0   18m 53s ⏱️ + 1m 13s
132 suites ±0     8 💤 ±0 
  5 files   ±0     0 ❌ ±0 

Results for commit 569cfa0. ± Comparison against base commit a1b4e90.

♻️ This comment has been updated with latest results.

@ch1bo ch1bo force-pushed the cardano-node-github-workflow branch from e14531b to 24c066d Compare January 4, 2024 09:18
@ch1bo ch1bo self-assigned this Jan 4, 2024
@ch1bo ch1bo added this to the 0.15.0 milestone Jan 8, 2024
@ch1bo ch1bo force-pushed the cardano-node-github-workflow branch 8 times, most recently from c7df213 to ab285e8 Compare January 8, 2024 14:34
@ch1bo ch1bo marked this pull request as ready for review January 8, 2024 14:39
ch1bo added 5 commits January 8, 2024 15:40
This is currently useful as the upstream project did not publish their
binaries for at least version 8.7.2
We will provide cardano-node binaries to our users for the time being
and instruct them to download it from the hydra release page.
@ch1bo ch1bo force-pushed the cardano-node-github-workflow branch from ab285e8 to 569cfa0 Compare January 8, 2024 14:40
@ch1bo ch1bo requested review from a user and locallycompact and removed request for a user January 9, 2024 07:02
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

😍 This is great, I think I am going to use this moving forward to download binaries for hydra-chess

@ch1bo ch1bo merged commit 853cd4d into master Jan 9, 2024
21 of 27 checks passed
@ch1bo ch1bo deleted the cardano-node-github-workflow branch January 9, 2024 14:35
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