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

Add tx-cost-diff executable #1718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add tx-cost-diff executable #1718

wants to merge 1 commit into from

Conversation

locallycompact
Copy link
Contributor


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

Copy link

github-actions bot commented Oct 22, 2024

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-10-23 13:52:13.644512013 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial b512161ccb0652d7e9a0b540e4a3c808f73d6558a4bcabf374d85880 3969
νCommit ea444d37d226e71eef73ac78d149750da977feb588900135bf9e8221 692
νHead 2253ddd95837c7aacc8635a971caaea743434152dd8dd2849bdf4162 10797
μHead 4d648ca239040b0e87901835aa11423e7aa3bd947ce6befe7db1bae8* 4508
νDeposit 703883df80fe589a8f64a4127057f28c9100ea9ebbb3e726c05e89ca 3096
  • 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 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

Copy link

github-actions bot commented Oct 22, 2024

Test Results

  7 files  ±0  164 suites  ±0   28m 0s ⏱️ - 1m 9s
558 tests ±0  552 ✅ ±0  6 💤 ±0  0 ❌ ±0 
560 runs  ±0  554 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit 008c3d0. ± Comparison against base commit f0d2fa0.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the lc/tx-cost-diff branch 2 times, most recently from 39f08d2 to a46c3c0 Compare October 23, 2024 13:39
Copy link
Contributor

@noonio noonio left a 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 :)

Copy link

Transaction cost differences

No cost or size differences found

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