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 Conway support #1323

Merged
merged 5 commits into from
Feb 26, 2024
Merged

Fix Conway support #1323

merged 5 commits into from
Feb 26, 2024

Conversation

ch1bo
Copy link
Member

@ch1bo ch1bo commented Feb 26, 2024


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

@ch1bo ch1bo force-pushed the conway-support-fixes branch from ca614b2 to 9a597ed Compare February 26, 2024 09:59
@ch1bo ch1bo linked an issue Feb 26, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Feb 26, 2024

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-02-26 12:43:53.949681461 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial bccf2a430c016bc960fbf31b02694011cd399d20da8882aac9d33611 4110
νCommit 56b0f0b597150e619c76bed60683f3b1e42d7bc0685ed951b882bfc5 1975
νHead 86bff95ba20e9d1d1b34899a56d86bbacc9fed999260b27dcc92d128 9351
μHead 88f533cf67cd0fc93d7d9ccf0a8b1d69ffd1208a825efbebbc1d36ba* 4213
  • 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 4795 8.68 3.31 0.46
2 4996 10.66 4.07 0.49
3 5196 12.55 4.80 0.51
5 5600 16.64 6.37 0.58
10 6602 26.22 10.05 0.73
48 14242 99.77 38.28 1.86

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 594 10.24 4.04 0.29
2 784 13.88 5.64 0.34
3 972 17.66 7.29 0.39
5 1348 25.66 10.74 0.49
10 2281 48.19 20.30 0.79
19 3966 97.83 40.79 1.41

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 544 16.93 6.68 0.36
2 114 654 26.89 10.72 0.47
3 170 764 38.40 15.44 0.61
4 227 874 52.35 21.17 0.76
5 282 984 69.73 28.26 0.96
6 337 1099 82.63 33.85 1.11

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 587 8.25 4.58 0.28
2 737 9.00 5.66 0.30
3 966 10.20 7.13 0.33
5 1267 12.01 9.58 0.37
10 1803 14.51 14.10 0.45
50 8246 50.45 63.55 1.38

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 626 8.69 4.75 0.28
2 835 9.83 6.17 0.31
3 880 10.15 6.89 0.32
5 1110 11.11 8.66 0.35
10 1824 15.24 14.39 0.46
50 7974 51.40 63.36 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 4672 17.05 7.37 0.55
2 4797 27.87 12.15 0.67
3 4904 40.90 17.91 0.83
4 5119 59.49 26.19 1.04
5 5251 78.11 34.39 1.26
6 5272 94.39 41.49 1.44

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 4627 7.85 3.28 0.44
5 1 57 4662 9.00 3.99 0.46
5 5 285 4797 14.03 7.02 0.53
5 10 568 4965 19.16 10.31 0.60
5 20 1137 5304 31.11 17.62 0.76
5 30 1708 5647 42.64 24.76 0.92
5 40 2279 5989 53.96 31.81 1.08
5 50 2846 6325 65.29 38.86 1.24
5 79 4496 7309 99.00 59.68 1.70

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-02-26 12:45:48.041725538 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.482341967
P99 111.75654105000005ms
P95 32.929290149999986ms
P50 19.889200000000002ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.035958744
P99 8.015598059999958ms
P95 4.876086349999998ms
P50 3.8566405ms
Number of Invalid txs 0

Copy link

github-actions bot commented Feb 26, 2024

Test Results

418 tests  ±0   410 ✅ ±0   13m 56s ⏱️ +32s
139 suites ±0     8 💤 ±0 
  5 files   ±0     0 ❌ ±0 

Results for commit 798314d. ± Comparison against base commit fad12fd.

♻️ This comment has been updated with latest results.

@ch1bo ch1bo requested a review from a team February 26, 2024 11:35
@ch1bo ch1bo force-pushed the conway-support-fixes branch 2 times, most recently from 045c30e to e323741 Compare February 26, 2024 11:43
Seems like we fail to decode conway blocks when running the smoke tests
on sanchonet. Converting transactions by re-encoding is maybe a more
robust way forward.
Seems like we fail to decode conway blocks when running the smoke tests
on sanchonet. Converting transactions by re-encoding is maybe a more
robust way forward.
Using the same re-encoding trick as used by the cardano-node we can
utilize the (still) babbage-specific observation code.
@ch1bo ch1bo force-pushed the conway-support-fixes branch from e323741 to 798314d Compare February 26, 2024 12:37
@ch1bo ch1bo merged commit 6379721 into master Feb 26, 2024
21 checks passed
@ch1bo ch1bo deleted the conway-support-fixes branch February 26, 2024 13:32
@ch1bo ch1bo added this to the 0.16.0 milestone Apr 3, 2024
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.

Smoke tests on Sanchonet
2 participants