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

add process-compose demo #1516

Closed
wants to merge 1 commit into from
Closed

add process-compose demo #1516

wants to merge 1 commit into from

Conversation

locallycompact
Copy link
Contributor

@locallycompact locallycompact commented Jul 19, 2024


  • CHANGELOG updated or not needed
  • Documentation updated or not needed
  • Haddocks updated or not needed
  • No new TODOs introduced or explained herafter

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-07-19 07:47:53.253119502 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial e6685648e63ab510b49d2ce632c570d2ef53f44f3cbdf82ed553906c 4081
νCommit fce3b967fb72f4a3be8dfa30defe413258ff453e5d32d6752d83f9cf 2060
νHead 10a116037de398d6b0721152336d602f0ea653eb3dfe540d5da63fe4 9367
μHead 4f93fdfeda690e005d3f5a180208edd3f65ddd0892466ad7f4dd678b* 4236
  • 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 4815 5.71 2.25 0.42
2 5018 7.09 2.80 0.45
3 5224 8.45 3.34 0.47
5 5623 11.31 4.47 0.52
10 6632 18.30 7.24 0.64
58 16279 84.19 33.30 1.79

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 559 9.25 3.68 0.28
2 749 11.94 4.93 0.32
3 938 14.70 6.20 0.36
5 1303 20.44 8.83 0.44
10 2250 36.05 15.86 0.65
26 5242 98.14 42.75 1.48

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 544 14.13 5.69 0.33
2 114 658 22.76 9.24 0.43
3 170 764 32.90 13.48 0.55
4 227 878 43.54 17.99 0.67
5 283 984 57.55 23.88 0.83
6 341 1095 72.35 30.16 1.00
7 394 1205 86.76 36.44 1.17

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 604 7.99 4.49 0.27
2 754 8.66 5.55 0.29
3 859 9.36 6.60 0.31
5 1294 11.53 9.43 0.37
10 2038 16.11 15.64 0.48
50 7902 47.47 61.31 1.32

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 639 8.40 4.66 0.28
2 715 8.70 5.38 0.29
3 895 9.81 6.77 0.32
5 1220 11.68 9.27 0.37
10 1920 15.31 14.79 0.47
50 8025 51.00 63.22 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 4715 16.52 7.22 0.54
2 4874 28.04 12.40 0.68
3 4940 37.54 16.48 0.79
4 5160 57.05 25.38 1.02
5 5250 75.41 33.48 1.23
6 5412 97.30 43.24 1.49

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 4650 7.63 3.20 0.44
5 1 57 4684 8.55 3.82 0.45
5 5 284 4819 13.41 6.80 0.52
5 10 569 4990 19.20 10.39 0.60
5 20 1140 5331 29.99 17.24 0.75
5 30 1707 5670 41.37 24.35 0.91
5 40 2274 6007 51.97 31.12 1.06
5 50 2843 6345 63.96 38.49 1.22
5 82 4672 7439 99.23 60.77 1.72

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-07-19 07:50:15.153151201 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.635645632
P99 9.611620739999918ms
P95 6.388050549999999ms
P50 4.3608975ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.845562188
P99 56.73804187000005ms
P95 31.144931499999995ms
P50 20.7752785ms
Number of Invalid txs 0

Copy link

Test Results

437 tests  ±0   425 ✅ ±0   15m 49s ⏱️ +23s
143 suites ±0    12 💤 ±0 
  5 files   ±0     0 ❌ ±0 

Results for commit a7d189f. ± Comparison against base commit 209de1d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants