Skip to content

Convert nix/hydra/docker.nix to flake-parts module #2025

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

locallycompact
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented May 27, 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-05-29 19:03:17.815004445 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 be6ebc744208c660bf0fdc1cfbb5157477cd305de5b1777e575cbb4c 14665
μHead 1f47a42d1d6edc32ccd834acb19d5db3b2a5232f0bd7eaa8908dc519* 5284
ν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 5836 10.32 3.27 0.51
2 6037 12.20 3.85 0.54
3 6239 14.68 4.64 0.58
5 6638 18.47 5.82 0.63
10 7646 28.68 9.02 0.78
43 14279 98.82 30.88 1.80

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 923 4.36 2.33 0.24
5 1279 6.41 3.60 0.28
10 2171 12.13 7.25 0.40
54 10061 98.61 68.52 1.88

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 24.43 7.12 0.42
2 114 636 34.31 9.88 0.53
3 169 747 41.39 11.97 0.60
4 224 858 52.62 15.07 0.72
5 283 969 59.61 17.14 0.80
6 337 1081 64.65 18.75 0.86
7 392 1192 72.40 20.96 0.94
8 449 1303 98.39 27.58 1.20

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1794 24.16 8.03 0.48
2 1882 24.69 8.80 0.50
3 2187 29.21 11.09 0.56
5 2376 31.35 13.02 0.60
10 3140 40.43 19.38 0.75
42 7783 99.72 59.88 1.73

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 614 22.46 7.26 0.41
2 753 24.01 8.36 0.44
3 885 25.05 9.29 0.46
5 1156 28.66 11.66 0.52
10 1926 37.62 17.46 0.66
42 6484 94.75 54.70 1.60

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 673 27.37 8.81 0.46
2 840 29.07 10.01 0.49
3 966 33.29 11.99 0.55
5 1362 36.03 14.47 0.61
10 2166 45.90 21.14 0.77
34 5587 97.28 53.40 1.57

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 676 33.66 10.49 0.53
2 848 36.29 12.05 0.57
3 942 37.70 13.05 0.59
5 1442 44.30 16.81 0.69
10 2097 54.25 23.18 0.85
29 4751 95.04 48.50 1.48

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 5698 22.93 7.56 0.64
2 5866 32.53 10.84 0.75
3 6107 46.18 15.59 0.90
4 6281 55.98 18.82 1.01
5 6278 58.08 19.44 1.04
6 6364 69.12 23.13 1.16
7 6644 83.29 27.98 1.32
8 6644 87.99 29.44 1.37
9 6649 91.64 30.52 1.40

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 5835 18.75 6.26 0.60
10 1 57 5869 20.53 6.98 0.62
10 10 569 6174 39.97 14.61 0.85
10 20 1140 6514 58.69 22.08 1.07
10 30 1710 6857 79.20 30.17 1.31
10 39 2219 7159 99.18 37.96 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-05-29 19:06:11.172428037 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.430194706
P99 6.393408509999997ms
P95 5.6920972999999995ms
P50 4.257178ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-05-29 19:04:55.778269067 UTC 0m 0;
2025-05-29 19:05:00.778106926 UTC 3 0;
2025-05-29 19:05:05.778117595 UTC 5 0;
2025-05-29 19:05:10.778136937 UTC 2 0;
2025-05-29 19:05:15.778152709 UTC 1 0;
2025-05-29 19:05:20.778137221 UTC 1 0;

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 31.844597582
P99 65.72176782ms
P95 54.0524594ms
P50 28.0978725ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-05-29 19:05:34.499154666 UTC 0m 0;
2025-05-29 19:05:39.499977693 UTC 3 0;
2025-05-29 19:05:44.500823506 UTC 5 0;
2025-05-29 19:05:49.499337524 UTC 22 0;
2025-05-29 19:05:54.49924618 UTC 14 0;
2025-05-29 19:05:59.499391279 UTC 2 0;
2025-05-29 19:06:04.49927189 UTC 2 0;
2025-05-29 19:06:09.499202002 UTC 2 0;

Copy link

github-actions bot commented May 27, 2025

Transaction cost differences

No cost or size differences found

@locallycompact locallycompact requested a review from a team May 27, 2025 10:27
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.

How does this work now without the isLinux check?

@github-project-automation github-project-automation bot moved this from Triage 🏥 to In review 👀 in ☕ Hydra Team Work May 29, 2025
@locallycompact
Copy link
Contributor Author

Ah good point I missed that.

@locallycompact locallycompact force-pushed the lc/docker-module branch 2 times, most recently from b5b993f to 1618a00 Compare May 29, 2025 11:40
@locallycompact locallycompact enabled auto-merge (squash) May 29, 2025 11:40
@locallycompact locallycompact merged commit f42e93b into master May 29, 2025
20 checks passed
@locallycompact locallycompact deleted the lc/docker-module branch May 29, 2025 19:29
@github-project-automation github-project-automation bot moved this from In review 👀 to Done ✔ in ☕ Hydra Team Work May 29, 2025
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.

2 participants