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

Use composite github action to deduplicate nix and cachix setup #1805

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

locallycompact
Copy link
Contributor

@locallycompact locallycompact commented Jan 28, 2025

No description provided.

@locallycompact locallycompact force-pushed the lc/gha branch 6 times, most recently from 5e509ab to d522755 Compare January 28, 2025 11:07
Copy link

github-actions bot commented Jan 28, 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-01-28 12:14:32.940948233 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 5350e9d521552ebfd9e846fd70c3b801f716fc14296134ec0fb71e97 14492
μHead 6b49dc4e571207d615dba01996548cb610b0caa85c30423d169d0091* 5612
ν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 6165 10.55 3.38 0.53
2 6365 12.04 3.82 0.56
3 6567 14.09 4.46 0.59
5 6968 18.88 6.01 0.65
10 7972 28.59 9.03 0.80
44 14815 98.04 30.85 1.82

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 921 4.36 2.33 0.24
5 1280 6.41 3.60 0.28
10 2173 12.13 7.25 0.40
54 10070 98.61 68.52 1.88

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 24.20 7.07 0.42
2 114 640 33.96 9.79 0.52
3 171 747 43.64 12.51 0.63
4 226 858 47.64 13.86 0.67
5 284 969 58.99 16.97 0.79
6 338 1081 64.01 18.61 0.85
7 395 1192 73.61 21.31 0.95
8 449 1307 82.62 23.92 1.05

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1748 23.12 7.64 0.47
2 2001 26.49 9.52 0.52
3 2095 27.03 10.29 0.54
5 2373 30.64 12.85 0.59
10 3097 39.00 18.91 0.74
45 8132 96.46 61.16 1.73

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 590 22.44 7.26 0.41
2 741 24.13 8.39 0.44
3 875 24.84 9.24 0.46
5 1139 27.79 11.40 0.51
10 2093 41.33 18.54 0.71
42 6917 99.38 56.15 1.66

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 639 28.60 9.15 0.48
2 775 28.08 9.63 0.48
3 944 30.21 11.07 0.52
5 1190 35.51 13.97 0.59
10 2152 47.17 21.47 0.78
39 6533 98.46 58.33 1.65

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 692 33.35 10.43 0.53
2 839 35.38 11.71 0.56
3 1010 37.78 13.23 0.60
5 1335 42.18 16.03 0.67
10 2059 52.94 22.81 0.83
31 5393 99.84 52.43 1.57

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 6075 26.21 8.87 0.69
2 6121 33.71 11.34 0.77
3 6412 44.89 15.31 0.91
4 6441 52.27 17.76 0.98
5 6569 61.29 20.77 1.08
6 6736 71.80 24.32 1.20
7 6795 78.79 26.69 1.28
8 7045 88.04 29.90 1.39
9 7092 95.67 32.42 1.47

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 6197 20.72 7.21 0.64
10 5 285 6332 27.98 10.15 0.73
10 20 1138 6840 56.83 21.77 1.07
10 30 1710 7185 77.88 30.18 1.31
10 40 2279 7523 96.02 37.53 1.53
10 41 2332 7553 97.98 38.32 1.55

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-01-28 12:17:20.645415752 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.596335906
P99 13.845777549999992ms
P95 6.1120117ms
P50 4.205927ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 22.639776816
P99 116.79869443ms
P95 29.038948149999996ms
P50 20.3703805ms
Number of Invalid txs 0

Copy link

github-actions bot commented Jan 28, 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 - - - -
44 - - - -

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 - - - - -
9 - - - - -
10 - - - - -

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - +0.39 +0.09 -
2 - +0.39 +0.09 +0.01
3 - +0.38 +0.09 -
5 - - - -
10 - $${\color{green}-0.38}$$ $${\color{green}-0.10}$$ -
43 - - - -

Cost of Decrement Transaction

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

Close transaction costs

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

Contest transaction costs

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

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) - - - - -
(40, 10) - - - - -
(41, 10) - - - - -

Copy link

github-actions bot commented Jan 28, 2025

Test Results

  5 files  ±0  165 suites  ±0   34m 54s ⏱️ + 3m 48s
563 tests ±0  561 ✅ ±0  2 💤 ±0  0 ❌ ±0 
565 runs  ±0  563 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 788e0e0. ± Comparison against base commit 56274fa.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the lc/gha branch 12 times, most recently from 0f53d78 to e28e88b Compare January 28, 2025 11:53
@locallycompact locallycompact changed the title Try using composite gha workflow Use composite github action to deduplicate nix and cachix setup Jan 28, 2025
@locallycompact locallycompact requested a review from a team January 28, 2025 12:04
@locallycompact locallycompact added this pull request to the merge queue Jan 28, 2025
Merged via the queue into master with commit b39dd68 Jan 28, 2025
26 of 27 checks passed
@locallycompact locallycompact deleted the lc/gha branch January 28, 2025 12:47
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