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

Move / deduplicate genAbortableOutputs #1694

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

ch1bo
Copy link
Collaborator

@ch1bo ch1bo commented Oct 9, 2024

This function is not only hard to read, but was even twice in our codebase. Moved it to Abort mutation tests as its the only location where it is used.


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

This function is not only hard to read, but was even twice in our
codebase. Moved it to Abort mutation tests as its the only location
where it is used.
@ch1bo ch1bo added the tidying A small change improving the "habitability" of the code. Emphasis on small. label Oct 9, 2024
@ch1bo ch1bo requested a review from a team October 9, 2024 06:28
Copy link

github-actions bot commented Oct 9, 2024

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 2024-10-09 06:34:52.211749354 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial b512161ccb0652d7e9a0b540e4a3c808f73d6558a4bcabf374d85880 3969
νCommit ea444d37d226e71eef73ac78d149750da977feb588900135bf9e8221 692
νHead 2253ddd95837c7aacc8635a971caaea743434152dd8dd2849bdf4162 10797
μHead 4d648ca239040b0e87901835aa11423e7aa3bd947ce6befe7db1bae8* 4508
νDeposit 1a011f23b139a6426767026bde10319546485d553219a5848cdac4e5 2993
  • 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 5096 5.81 2.30 0.44
2 5298 7.07 2.79 0.46
3 5498 8.56 3.39 0.49
5 5899 11.45 4.53 0.54
10 6908 18.21 7.20 0.65
57 16355 83.13 32.89 1.78

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 569 10.84 4.26 0.29
2 752 14.31 5.80 0.34
3 942 17.92 7.39 0.39
5 1310 25.56 10.73 0.49
10 2263 47.11 19.97 0.77
19 3946 94.71 39.81 1.38

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 564 20.58 7.85 0.40
2 112 670 28.85 10.97 0.49
3 170 782 35.26 13.43 0.57
4 228 893 43.00 16.39 0.66
5 283 1004 55.42 21.04 0.79
6 339 1116 62.93 23.89 0.88
7 394 1227 75.47 28.61 1.02
8 449 1338 86.34 32.72 1.14
9 505 1449 86.99 33.10 1.16

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 648 18.40 8.06 0.39
2 773 19.35 9.15 0.41
3 963 22.40 11.16 0.45
5 1168 23.44 13.07 0.49
10 1831 30.69 19.85 0.62
48 7644 99.90 76.05 1.84

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 659 20.83 9.31 0.41
2 785 22.34 10.77 0.44
3 967 24.23 12.57 0.48
5 1236 27.09 15.44 0.53
10 2036 35.40 23.52 0.70
50 8079 98.60 85.85 1.92

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 679 26.81 11.49 0.48
2 803 28.57 13.03 0.51
3 901 29.94 14.25 0.53
5 1205 33.90 17.70 0.60
10 2002 43.90 26.45 0.78
39 6193 97.77 73.72 1.74

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 5003 15.43 6.61 0.54
2 5053 21.29 9.07 0.61
3 5212 28.64 12.35 0.70
4 5401 35.51 15.44 0.79
5 5611 44.00 19.27 0.89
6 5695 49.78 21.71 0.96
7 5818 56.92 24.82 1.05
8 5911 58.57 25.37 1.07
9 5922 67.64 29.25 1.17
10 6151 75.10 32.64 1.26
11 6461 86.27 37.89 1.40
12 6390 83.88 36.33 1.37
13 6582 99.22 43.31 1.55

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 5089 9.88 4.13 0.48
10 1 57 5123 11.24 4.94 0.50
10 5 285 5259 15.83 7.79 0.57
10 10 566 5425 22.15 11.61 0.65
10 20 1138 5767 33.35 18.64 0.81
10 30 1705 6106 45.04 25.88 0.97
10 40 2276 6448 56.93 33.20 1.13
10 50 2851 6792 68.44 40.36 1.29
10 76 4326 7669 98.88 59.22 1.71

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 2024-10-09 06:38:23.57839167 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.314805999
P99 6.900765169999973ms
P95 5.4488537ms
P50 4.1435955ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.737898987
P99 113.37359650000005ms
P95 29.261205499999964ms
P50 20.4299105ms
Number of Invalid txs 0

Copy link

github-actions bot commented Oct 9, 2024

Test Results

518 tests  ±0   512 ✅ ±0   30m 49s ⏱️ - 1m 29s
163 suites ±0     6 💤 ±0 
  7 files   ±0     0 ❌ ±0 

Results for commit 8bcf001. ± Comparison against base commit 5862033.

@locallycompact locallycompact added this pull request to the merge queue Oct 9, 2024
Merged via the queue into master with commit d51977e Oct 9, 2024
28 checks passed
@locallycompact locallycompact deleted the deduplicate-gen-abortable-outputs branch October 9, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tidying A small change improving the "habitability" of the code. Emphasis on small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants