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

Replace use of outputs' with view outputsTxBodyL #1206

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

locallycompact
Copy link
Contributor

Lenses are the designated way to deal with ledger type families. ouputTxBodyL is a lens that will work for all eras. Needed for conway support.


  • 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 2023-12-12 15:04:53.694912111 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 985245919fcc6c0c5cd116023cd2c947c43e80dcbb5075fe12433fbb 4072
νCommit 7cb20fa71eb4c563ca283566ebe0aa65859d96c3f8cba35c52c181fd 2043
νHead 7a36661f5c15e9f1783aeaab890812c59b7286cbbc6de762d3110772 8816
μHead 8b111ac12274e46314769295a1c5dcab1d260096fc469fd698065463* 3851
  • 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 4372 10.59 4.09 0.46
2 4575 12.76 4.92 0.49
3 4777 14.83 5.69 0.52
5 5180 19.50 7.47 0.59
10 6184 30.48 11.63 0.75
41 12415 99.12 37.64 1.77

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 534 11.37 4.44 0.30
2 721 15.04 6.07 0.35
3 913 18.85 7.75 0.40
5 1277 26.90 11.27 0.51
10 2221 49.55 20.97 0.80
19 3918 99.43 41.75 1.43

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 484 21.07 8.25 0.40
2 113 590 32.35 12.79 0.53
3 171 700 47.43 18.84 0.70
4 227 810 63.47 25.34 0.88
5 283 920 79.55 31.97 1.06
6 337 1031 94.99 38.47 1.24

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 537 16.72 7.69 0.36
2 715 18.45 9.30 0.40
3 849 19.86 10.61 0.42
5 1227 23.65 14.05 0.50
10 2113 31.71 21.72 0.66
50 8872 98.77 83.67 1.94

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 589 20.23 8.98 0.40
2 768 22.21 10.67 0.44
3 936 24.15 12.35 0.48
5 1337 28.12 15.79 0.55
10 2156 37.19 23.72 0.72
43 7775 99.77 77.74 1.86

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 4307 18.85 8.11 0.55
2 4477 31.96 13.92 0.71
3 4656 47.49 20.84 0.89
4 4820 66.25 29.16 1.11
5 4976 80.30 35.27 1.27

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 4205 8.26 3.46 0.43
5 1 57 4240 9.49 4.22 0.44
5 5 285 4375 14.19 7.18 0.51
5 10 570 4545 20.55 11.08 0.60
5 20 1138 4883 32.85 18.71 0.77
5 30 1706 5224 45.15 26.34 0.93
5 40 2275 5563 57.46 33.97 1.10
5 50 2848 5905 69.77 41.61 1.27
5 74 4214 6719 99.13 59.87 1.68

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 2023-12-12 15:07:29.936179026 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 23.400202384
P99 116.98393819000003ms
P95 33.562044599999986ms
P50 20.226695499999998ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 3.934773765
P99 5.301564779999995ms
P95 4.5417065ms
P50 3.838471ms
Number of Invalid txs 0

Copy link

Test Results

377 tests  ±0   372 ✔️ ±0   21m 20s ⏱️ +20s
128 suites ±0       5 💤 ±0 
    5 files   ±0       0 ±0 

Results for commit 10e5994. ± Comparison against base commit ea51f67.

@locallycompact locallycompact merged commit 6ba4954 into master Dec 12, 2023
21 checks passed
@locallycompact locallycompact deleted the lc/outputsTxBodyL branch December 12, 2023 15:32
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.

None yet

3 participants