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

Revert "Mk 5056 how to sections" #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

oduameh
Copy link
Owner

@oduameh oduameh commented Jun 19, 2024

Reverts #2

Copy link

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-06-19 11:56:46.617802487 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial baafeb5dc37bbe6e068784746bda0a3b1bb1d034fa0c55270f6079c1 4082
νCommit fe7af84822bcba542fae377ae7311fc5fd20152f925ccd980f73ecdc 2061
νHead 93c08c55e804d7f82ca545a01883b5fda6a6d3623cb78885625800ae 9366
μHead 5e65c73722b4bb3f0cbfcc8433e1dcdfea099eaf0a43060f1731a65b* 4237
  • 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 4819 5.98 2.35 0.43
2 5020 7.44 2.93 0.45
3 5224 8.74 3.44 0.48
5 5625 11.50 4.52 0.52
10 6628 18.51 7.29 0.64
58 16276 85.81 33.83 1.80

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 557 9.69 3.82 0.28
2 749 12.48 5.10 0.32
3 937 15.33 6.40 0.36
5 1303 21.26 9.09 0.44
10 2245 37.35 16.27 0.67
25 5053 96.42 41.75 1.45

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 544 14.78 5.90 0.34
2 114 658 23.05 9.32 0.43
3 170 764 32.70 13.36 0.54
4 226 874 45.98 18.84 0.70
5 282 984 59.82 24.65 0.85
6 340 1095 73.02 30.33 1.01
7 394 1205 88.19 36.85 1.18

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 482 7.58 3.46 0.26
2 756 8.97 5.67 0.30
3 650 8.88 4.32 0.28
5 1166 11.52 9.17 0.36
10 1989 16.14 15.45 0.48
50 8398 52.57 64.91 1.41

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 615 8.56 4.69 0.28
2 773 9.33 5.80 0.30
3 918 9.97 6.84 0.32
5 1170 11.46 8.99 0.36
10 1997 16.81 15.69 0.49
50 8026 51.20 63.13 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 4693 17.05 7.37 0.55
2 4906 28.75 12.62 0.69
3 4871 39.99 17.43 0.81
4 5084 58.20 25.56 1.03
5 5126 70.05 30.61 1.16
6 5378 99.07 43.59 1.50

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 4651 7.61 3.18 0.44
5 1 57 4685 9.39 4.16 0.46
5 5 284 4821 13.37 6.74 0.52
5 10 568 4989 19.34 10.39 0.60
5 20 1136 5327 30.66 17.43 0.76
5 30 1709 5673 42.82 24.83 0.92
5 40 2279 6013 53.93 31.80 1.08
5 50 2851 6354 65.47 38.94 1.24
5 79 4500 7337 99.39 59.85 1.71

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-06-19 11:58:49.133752979 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.307962688
P99 8.59337570999998ms
P95 5.34368735ms
P50 4.058012ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.295531650
P99 114.61412093000004ms
P95 30.544488649999984ms
P50 19.635994ms
Number of Invalid txs 0

Copy link

Test Results

437 tests   425 ✅  15m 24s ⏱️
143 suites   12 💤
  5 files      0 ❌

Results for commit 3a72723.

@oduameh oduameh force-pushed the master branch 2 times, most recently from 0d5b516 to 3e7bd6b Compare July 17, 2024 08: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