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

Not rely on unreleased ledger version #1530

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

ch1bo
Copy link
Collaborator

@ch1bo ch1bo commented Jul 24, 2024

By vendoring the conversion from PlutusWithContext to an applied term, we don't rely on the source-repository-package of cardano-ledger. This fixes hoogle and make haskell.nix better behaved.


@locallycompact locallycompact enabled auto-merge (squash) July 24, 2024 09:27
By vendoring the conversion from PlutusWithContext to an applied term,
we don't rely on the source-repository-package of cardano-ledger. This
fixes hoogle and make haskell.nix better behaved.
Copy link

Transaction 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-24 09:51:16.806668864 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 2fac819a1f4f14e29639d1414220d2a18b6abd6b8e444d88d0dda8ff 3799
νCommit 2043a9f1a685bcf491413a5f139ee42e335157c8c6bc8d9e4018669d 1743
νHead 7ae23bc9f0833a5689b9fc812dd92fbe9dac881a632f14b28e8eb8db 10193
μHead 3ebfb5b268e0c94200e2c8a8eeebf704aabf303a769af602edb3603a* 4607
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per head.

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 5192 5.71 2.25 0.44
2 5393 7.18 2.84 0.47
3 5590 8.37 3.30 0.49
5 5994 11.41 4.51 0.54
10 6996 18.02 7.12 0.66
56 16244 81.80 32.36 1.76

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 556 10.52 4.15 0.29
2 749 13.86 5.65 0.34
3 931 17.33 7.20 0.38
5 1310 24.65 10.44 0.48
10 2241 45.22 19.36 0.75
20 4119 95.99 40.76 1.40

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 549 21.46 8.41 0.41
2 114 659 32.10 12.73 0.53
3 170 769 44.91 17.98 0.68
4 226 883 59.73 24.10 0.85
5 282 989 78.50 31.82 1.06
6 339 1100 88.71 36.44 1.18

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 623 17.96 7.88 0.38
2 804 19.89 9.35 0.41
3 939 20.72 10.35 0.43
5 1186 23.37 12.93 0.48
10 1938 31.67 19.80 0.63
50 7874 96.55 74.14 1.81

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 665 20.98 9.42 0.42
2 826 22.83 11.12 0.45
3 959 24.26 12.51 0.48
5 1384 28.42 16.34 0.56
10 2144 35.80 23.58 0.70
49 7994 98.84 83.09 1.90

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 658 27.18 11.67 0.48
2 805 28.98 13.20 0.51
3 965 30.72 14.72 0.55
5 1382 35.29 18.67 0.63
10 2235 45.34 27.28 0.81
38 6071 95.90 70.68 1.70

Abort transaction costs

There is some variation due to the random mixture of initial and already committed outputs.

Parties Tx size % max Mem % max CPU Min fee ₳
1 5055 17.32 7.53 0.57
2 5132 27.66 12.04 0.69
3 5297 41.76 18.40 0.85
4 5447 58.49 25.91 1.05
5 5691 78.86 35.16 1.29
6 5802 98.39 43.92 1.52

FanOut transaction costs

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 5023 7.75 3.28 0.46
5 1 57 5056 8.88 3.99 0.47
5 5 284 5192 13.21 6.75 0.53
5 10 567 5359 18.87 10.31 0.61
5 20 1136 5699 30.38 17.51 0.77
5 30 1708 6043 42.10 24.80 0.94
5 40 2279 6384 52.84 31.67 1.09
5 50 2847 6722 64.17 38.80 1.24
5 81 4612 7773 99.53 61.01 1.74

End-to-end benchmark results

This page is intended to collect the latest end-to-end benchmark results produced by Hydra's continuous integration (CI) system from the latest master code.

Please note that these results are approximate as they are currently produced from limited cloud VMs and not controlled hardware. Rather than focusing on the absolute results, the emphasis should be on relative results, such as how the timings for a scenario evolve as the code changes.

Generated at 2024-07-24 09:54:21.162414654 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 3.722027581
P99 5.3635799499999415ms
P95 4.302944299999999ms
P50 3.621415ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.356199082
P99 52.96148741000018ms
P95 30.479755549999993ms
P50 20.171439499999998ms
Number of Invalid txs 0

Copy link

Test Results

464 tests   452 ✅  16m 43s ⏱️
148 suites   12 💤
  5 files      0 ❌

Results for commit fd94c3b.

@locallycompact locallycompact merged commit 9076612 into master Jul 24, 2024
21 checks passed
@locallycompact locallycompact deleted the not-rely-on-ledger-srp branch July 24, 2024 13:03
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.

2 participants