-
Notifications
You must be signed in to change notification settings - Fork 86
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 tx-cost-diff executable #1718
Conversation
locallycompact
commented
Oct 22, 2024
- CHANGELOG updated or not needed
- Documentation updated or not needed
- Haddocks updated or not needed
- No new TODOs introduced or explained herafter
bad9ee7
to
6bdb964
Compare
Transaction costsSizes and execution budgets for Hydra protocol transactions. Note that unlisted parameters are currently using
Script summary
|
Parties | Tx size | % max Mem | % max CPU | Min fee ₳ |
---|---|---|---|---|
1 | 5096 | 5.61 | 2.21 | 0.44 |
2 | 5298 | 7.13 | 2.82 | 0.46 |
3 | 5499 | 8.51 | 3.36 | 0.49 |
5 | 5901 | 11.26 | 4.45 | 0.53 |
10 | 6907 | 18.16 | 7.18 | 0.65 |
57 | 16353 | 83.26 | 32.95 | 1.78 |
Commit
transaction costs
This uses ada-only outputs for better comparability.
UTxO | Tx size | % max Mem | % max CPU | Min fee ₳ |
---|---|---|---|---|
1 | 569 | 10.84 | 4.26 | 0.29 |
2 | 759 | 14.31 | 5.80 | 0.34 |
3 | 945 | 17.92 | 7.39 | 0.39 |
5 | 1316 | 25.56 | 10.73 | 0.49 |
10 | 2250 | 47.11 | 19.97 | 0.77 |
19 | 3942 | 94.71 | 39.81 | 1.38 |
CollectCom
transaction costs
Parties | UTxO (bytes) | Tx size | % max Mem | % max CPU | Min fee ₳ |
---|---|---|---|---|---|
1 | 57 | 560 | 19.87 | 7.59 | 0.39 |
2 | 114 | 671 | 28.85 | 10.97 | 0.49 |
3 | 170 | 786 | 35.41 | 13.49 | 0.57 |
4 | 227 | 893 | 42.32 | 16.12 | 0.65 |
5 | 283 | 1004 | 56.55 | 21.46 | 0.81 |
6 | 340 | 1116 | 63.45 | 24.09 | 0.89 |
7 | 394 | 1227 | 76.97 | 29.14 | 1.04 |
8 | 450 | 1338 | 71.55 | 27.30 | 0.98 |
9 | 506 | 1453 | 93.74 | 35.55 | 1.23 |
Cost of Decrement Transaction
Parties | Tx size | % max Mem | % max CPU | Min fee ₳ |
---|---|---|---|---|
1 | 655 | 18.40 | 8.08 | 0.39 |
2 | 780 | 20.08 | 9.51 | 0.42 |
3 | 912 | 20.75 | 10.47 | 0.43 |
5 | 1282 | 26.39 | 14.24 | 0.52 |
10 | 2009 | 33.74 | 20.99 | 0.66 |
47 | 7681 | 97.67 | 74.34 | 1.81 |
Close
transaction costs
Parties | Tx size | % max Mem | % max CPU | Min fee ₳ |
---|---|---|---|---|
1 | 649 | 20.87 | 9.33 | 0.41 |
2 | 741 | 21.93 | 10.44 | 0.44 |
3 | 929 | 23.82 | 12.24 | 0.47 |
5 | 1221 | 27.05 | 15.42 | 0.53 |
10 | 2012 | 35.24 | 23.37 | 0.69 |
50 | 7964 | 97.52 | 84.99 | 1.90 |
Contest
transaction costs
Parties | Tx size | % max Mem | % max CPU | Min fee ₳ |
---|---|---|---|---|
1 | 692 | 26.81 | 11.49 | 0.48 |
2 | 856 | 28.98 | 13.36 | 0.52 |
3 | 943 | 30.39 | 14.60 | 0.54 |
5 | 1368 | 34.52 | 18.36 | 0.62 |
10 | 2114 | 44.52 | 26.99 | 0.80 |
39 | 6438 | 99.50 | 75.29 | 1.78 |
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 | 4985 | 15.47 | 6.62 | 0.54 |
2 | 5045 | 19.24 | 8.13 | 0.59 |
3 | 5261 | 29.07 | 12.62 | 0.71 |
4 | 5334 | 35.04 | 15.14 | 0.78 |
5 | 5432 | 39.12 | 16.80 | 0.83 |
6 | 5613 | 49.19 | 21.36 | 0.95 |
7 | 5684 | 55.62 | 24.07 | 1.02 |
8 | 5958 | 63.85 | 27.82 | 1.13 |
9 | 5860 | 58.76 | 25.12 | 1.06 |
10 | 6233 | 78.72 | 34.43 | 1.31 |
11 | 6373 | 78.41 | 34.22 | 1.31 |
12 | 6227 | 84.66 | 36.52 | 1.37 |
13 | 6725 | 98.74 | 43.29 | 1.56 |
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 ₳ |
---|---|---|---|---|---|---|
10 | 0 | 0 | 5090 | 10.38 | 4.35 | 0.49 |
10 | 1 | 57 | 5123 | 11.35 | 4.98 | 0.50 |
10 | 5 | 285 | 5260 | 16.42 | 8.04 | 0.57 |
10 | 10 | 570 | 5429 | 22.26 | 11.66 | 0.65 |
10 | 20 | 1138 | 5767 | 33.75 | 18.81 | 0.81 |
10 | 30 | 1706 | 6108 | 45.44 | 26.05 | 0.97 |
10 | 40 | 2277 | 6448 | 56.63 | 33.07 | 1.13 |
10 | 50 | 2846 | 6787 | 68.63 | 40.45 | 1.30 |
10 | 76 | 4323 | 7667 | 98.68 | 59.14 | 1.71 |
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-10-23 13:55:12.436314009 UTC
Baseline Scenario
Number of nodes | 1 |
---|---|
Number of txs | 300 |
Avg. Confirmation Time (ms) | 4.382568806 |
P99 | 9.480263729999967ms |
P95 | 5.941996700000001ms |
P50 | 4.118664ms |
Number of Invalid txs | 0 |
Three local nodes
Number of nodes | 3 |
---|---|
Number of txs | 900 |
Avg. Confirmation Time (ms) | 24.398883128 |
P99 | 42.58233697999999ms |
P95 | 34.38288195ms |
P50 | 22.723116ms |
Number of Invalid txs | 0 |
39f08d2
to
a46c3c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice I'm happy with the nixification, as long as it works as it did :)
a46c3c0
to
3adf95e
Compare
Transaction cost differencesNo cost or size differences found |
3adf95e
to
e7879b4
Compare
e7879b4
to
008c3d0
Compare
<!-- Describe your change here --> --- <!-- Consider each and tick it off one way or the other --> * [ ] CHANGELOG updated or not needed * [ ] Documentation updated or not needed * [ ] Haddocks updated or not needed * [ ] No new TODOs introduced or explained herafter