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

Fix logs and api schemas #1212

Merged
merged 7 commits into from
Dec 14, 2023
Merged

Fix logs and api schemas #1212

merged 7 commits into from
Dec 14, 2023

Conversation

ffakenz
Copy link
Member

@ffakenz ffakenz commented Dec 13, 2023

This PR aims to solve the following problems in our logs and api schemas:


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

@ffakenz ffakenz self-assigned this Dec 13, 2023
Copy link

github-actions bot commented Dec 13, 2023

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-14 09:09:14.818265193 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 4374 10.46 4.04 0.46
2 4573 12.76 4.92 0.49
3 4776 14.79 5.67 0.52
5 5184 19.22 7.35 0.59
10 6185 30.43 11.61 0.75
41 12418 98.96 37.57 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 911 18.85 7.75 0.40
5 1288 26.90 11.27 0.51
10 2222 49.55 20.97 0.80
19 3909 99.43 41.75 1.43

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 480 21.78 8.51 0.41
2 114 590 34.08 13.42 0.55
3 171 700 45.00 17.95 0.67
4 225 810 59.16 23.76 0.84
5 284 920 74.93 30.28 1.01
6 338 1031 94.34 38.23 1.23

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 561 16.72 7.71 0.37
2 742 18.49 9.34 0.40
3 913 20.31 10.98 0.43
5 1325 23.97 14.32 0.51
10 2127 32.12 21.90 0.66
50 8762 97.62 82.73 1.92

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 600 20.22 8.98 0.40
2 758 22.17 10.65 0.44
3 928 24.20 12.37 0.48
5 1253 27.71 15.43 0.54
10 2078 37.01 23.37 0.71
43 7640 98.24 76.62 1.83

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 19.02 8.18 0.55
2 4493 32.05 13.97 0.71
3 4562 42.24 18.30 0.82
4 4810 66.13 29.10 1.11
5 4986 87.18 38.46 1.35

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.05 3.37 0.42
5 1 57 4240 9.28 4.13 0.44
5 5 284 4375 14.40 7.27 0.51
5 10 569 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 2273 5560 57.25 33.88 1.10
5 50 2846 5904 69.52 41.50 1.27
5 74 4213 6718 98.92 59.78 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-14 09:13:00.930110125 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.935387531
P99 113.21401595000002ms
P95 32.06240524999996ms
P50 20.097984ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 3.973099085
P99 6.121336889999992ms
P95 4.6574700999999985ms
P50 3.8762235ms
Number of Invalid txs 0

Copy link

github-actions bot commented Dec 13, 2023

Test Results

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

Results for commit 34e2571. ± Comparison against base commit b1ebfa5.

♻️ This comment has been updated with latest results.

Copy link
Member

@ch1bo ch1bo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ffakenz ffakenz changed the title Fix log schema for WaitOnTxs outcome reason Fix logs and api schemas Dec 13, 2023
@ffakenz ffakenz requested a review from ch1bo December 13, 2023 21:53
hydra-node/json-schemas/logs.yaml Show resolved Hide resolved
hydra-node/json-schemas/logs.yaml Show resolved Hide resolved
@ffakenz ffakenz merged commit 99bf5cf into master Dec 14, 2023
21 checks passed
@ffakenz ffakenz deleted the fix-reason-log-schema branch December 14, 2023 10:18
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

2 participants