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

versioning hydra tx observations #1753

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ffakenz
Copy link
Contributor

@ffakenz ffakenz commented Nov 28, 2024


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

Copy link

Transaction cost differences

No cost or size differences found

Copy link

github-actions bot commented Nov 28, 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-12-10 10:51:14.356906769 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 00a6ddbc130ab92f5b7cb8d1ccd8d79eca5bfe25f6843c07b62841f0 2667
νCommit 3e5a776bcee213e3dfd15806952a10ac5590e3e97d09d62eb99266b2 690
νHead 8fc2a74df32d01d1db56b3acb561831ef9c9970123079423abfcb86e 12622
μHead c40e78e78083a4c137734abe9ac4070cc978842e9755fe88e0c7b922* 11133
νDeposit 2feb47889a4f658dc593cefcb0e37d584b9431944f08a687f3dab4af 4865
  • 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 11718 8.87 2.89 0.76
2 11919 10.60 3.46 0.79
3 12121 12.22 3.97 0.81
5 12522 16.11 5.26 0.87
10 13527 24.86 8.09 1.00
24 16343 49.13 15.96 1.38

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 561 2.45 1.17 0.20
2 742 3.40 1.74 0.22
3 920 4.39 2.34 0.24
5 1280 6.46 3.61 0.28
10 2179 12.24 7.28 0.40
54 10069 99.20 68.72 1.89

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 560 24.83 7.22 0.43
2 114 671 32.76 9.50 0.51
3 170 782 40.63 11.79 0.60
4 225 893 48.98 14.19 0.69
5 283 1009 55.19 16.03 0.76
6 340 1116 69.58 20.03 0.91
7 396 1227 81.79 23.32 1.03
8 449 1338 84.51 24.38 1.07

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 632 22.63 7.30 0.41
2 755 24.12 8.39 0.44
3 862 23.84 8.96 0.45
5 1220 28.70 11.66 0.52
10 2099 41.66 18.63 0.71
40 6318 92.53 52.92 1.56

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 640 24.43 8.03 0.43
2 772 25.94 9.17 0.46
3 961 28.15 10.63 0.50
5 1311 32.20 13.46 0.57
10 2042 39.84 19.26 0.70
44 7118 98.91 61.95 1.71

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 710 30.42 9.64 0.50
2 828 32.31 10.88 0.53
3 905 33.61 11.84 0.55
5 1324 38.92 15.14 0.63
10 2009 48.69 21.59 0.79
34 5686 98.66 54.13 1.59

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 11520 22.06 7.37 0.89
2 11718 34.18 11.61 1.03
3 11900 43.39 14.82 1.13
4 11946 50.67 17.25 1.21
5 12183 57.95 19.76 1.30
6 12275 71.04 24.23 1.44
7 12307 74.75 25.42 1.48
8 12513 88.24 30.03 1.63
9 12848 99.98 34.12 1.77

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 11715 18.23 6.26 0.86
10 1 57 11749 18.10 6.29 0.86
10 5 285 11884 26.60 9.74 0.96
10 10 568 12052 35.13 13.28 1.06
10 20 1139 12394 54.38 21.17 1.29
10 30 1707 12733 72.54 28.65 1.50
10 40 2278 13074 91.44 36.40 1.73
10 44 2508 13212 99.22 39.59 1.82

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-12-10 10:54:04.440870298 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 5.169468623
P99 9.878826279999968ms
P95 7.4012815ms
P50 4.8025525ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 24.647034917
P99 106.39281281999999ms
P95 34.572167499999985ms
P50 22.1907825ms
Number of Invalid txs 0

Copy link

github-actions bot commented Nov 28, 2024

Test Results

  5 files  ±0  162 suites  ±0   32m 7s ⏱️ - 1m 1s
555 tests ±0  548 ✅ ±0  7 💤 ±0  0 ❌ ±0 
557 runs  ±0  550 ✅ ±0  7 💤 ±0  0 ❌ ±0 

Results for commit 77e980a. ± Comparison against base commit dd67f3d.

♻️ This comment has been updated with latest results.

@ffakenz ffakenz force-pushed the versioning-hydra-tx-observations branch 2 times, most recently from 2bd816d to 4264cd9 Compare November 29, 2024 08:19
@ffakenz ffakenz force-pushed the versioning-hydra-tx-observations branch from 4264cd9 to 77e980a Compare December 10, 2024 10:49
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.

1 participant