Skip to content

Change default contestation period and deposit deadline.#1932

Merged
noonio merged 1 commit into
masterfrom
default-cperiod-and-ddeadline
Apr 8, 2025
Merged

Change default contestation period and deposit deadline.#1932
noonio merged 1 commit into
masterfrom
default-cperiod-and-ddeadline

Conversation

@v0d1ch

@v0d1ch v0d1ch commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

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

Signed-off-by: Sasha Bogicevic <sasha.bogicevic@iohk.io>
@v0d1ch v0d1ch self-assigned this Apr 8, 2025
@github-project-automation github-project-automation Bot moved this to Triage 🏥 in ☕ Hydra Team Work Apr 8, 2025
@v0d1ch v0d1ch moved this from Triage 🏥 to In review 👀 in ☕ Hydra Team Work Apr 8, 2025
@v0d1ch v0d1ch added this to the 0.21.0 milestone Apr 8, 2025
@v0d1ch v0d1ch linked an issue Apr 8, 2025 that may be closed by this pull request
@v0d1ch
v0d1ch requested a review from a team April 8, 2025 08:12
@v0d1ch v0d1ch modified the milestones: 0.21.0, 0.22.0 Apr 8, 2025
@github-actions

github-actions Bot commented Apr 8, 2025

Copy link
Copy Markdown

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 2025-04-08 08:19:15.200104213 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial c8a101a5c8ac4816b0dceb59ce31fc2258e387de828f02961d2f2045 2652
νCommit 61458bc2f297fff3cc5df6ac7ab57cefd87763b0b7bd722146a1035c 685
νHead 0e35115a2c7c13c68ecd8d74e4987c04d4539e337643be20bb3274bd 14756
μHead 57166715eadb8d3135964325c016eea546c21e1c0aae974ca67df9a5* 5541
νDeposit ae01dade3a9c346d5c93ae3ce339412b90a0b8f83f94ec6baa24e30c 1102
  • 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 6093 11.32 3.53 0.54
2 6294 13.26 4.11 0.56
3 6499 15.98 4.97 0.60
5 6897 20.25 6.27 0.66
10 7903 31.76 9.81 0.83
40 13933 98.88 30.39 1.78

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 561 2.44 1.16 0.20
2 743 3.38 1.73 0.22
3 922 4.36 2.33 0.24
5 1275 6.41 3.60 0.28
10 2176 12.13 7.25 0.40
54 10070 98.61 68.52 1.88

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 525 25.67 7.41 0.43
2 113 636 34.88 9.99 0.53
3 170 747 45.78 12.98 0.65
4 227 858 56.38 15.94 0.76
5 284 974 63.82 18.07 0.84
6 340 1081 75.18 21.22 0.96
7 395 1192 76.20 21.86 0.98
8 449 1303 93.52 26.35 1.15

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 1802 25.03 8.22 0.49
2 1882 25.63 9.00 0.51
3 2102 29.67 11.02 0.56
5 2380 33.01 13.39 0.62
10 3173 43.94 20.32 0.79
39 7348 97.89 56.77 1.67

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 623 23.95 7.61 0.43
2 724 25.62 8.73 0.45
3 827 25.35 9.29 0.46
5 1239 33.04 12.76 0.56
10 1937 42.19 18.61 0.71
37 5921 94.61 51.04 1.54

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 644 30.87 9.66 0.50
2 817 30.94 10.42 0.51
3 970 32.78 11.65 0.54
5 1348 37.80 14.73 0.62
10 2061 48.17 21.41 0.78
33 5283 97.21 51.95 1.54

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 672 35.95 11.00 0.55
2 811 38.19 12.33 0.58
3 984 41.03 13.95 0.63
5 1398 46.69 17.20 0.71
10 2130 58.65 24.31 0.89
27 4720 99.99 48.71 1.52

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 5975 28.20 9.30 0.71
2 6098 37.59 12.38 0.81
3 6211 44.44 14.64 0.89
4 6363 54.03 17.80 1.00
5 6563 67.78 22.40 1.15
6 6645 73.88 24.38 1.22
7 6835 88.05 29.11 1.37
8 6892 90.03 29.66 1.39

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 6091 18.75 6.15 0.61
10 1 57 6125 22.45 7.51 0.66
10 5 285 6262 31.23 10.90 0.76
10 10 569 6430 41.15 14.79 0.87
10 20 1137 6768 62.26 22.99 1.12
10 30 1705 7108 83.57 31.25 1.36
10 35 1994 7283 95.60 35.85 1.50

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 2025-04-08 08:18:10.406352263 UTC

Baseline Scenario

Number of nodes 1
Number of txs 300
Avg. Confirmation Time (ms) 4.635155180
P99 8.061802229999998ms
P95 5.441420700000001ms
P50 4.45426ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-04-08 08:16:53.719337136 UTC 887M 6560M
2025-04-08 08:16:58.719468361 UTC 1024M 6326M
2025-04-08 08:17:03.719352252 UTC 1025M 6324M
2025-04-08 08:17:08.719322164 UTC 1024M 6324M
2025-04-08 08:17:13.719258233 UTC 1026M 6322M
2025-04-08 08:17:18.719342183 UTC 1026M 6322M

Three local nodes

Number of nodes 3
Number of txs 900
Avg. Confirmation Time (ms) 28.334316341
P99 50.74566637ms
P95 37.8301077ms
P50 27.0986755ms
Number of Invalid txs 0

Memory data

Time Used Free
2025-04-08 08:17:32.698963781 UTC 932M 6425M
2025-04-08 08:17:37.699038276 UTC 1205M 6151M
2025-04-08 08:17:42.703198705 UTC 1259M 6039M
2025-04-08 08:17:47.69900648 UTC 1267M 5978M
2025-04-08 08:17:52.698997106 UTC 1269M 5976M
2025-04-08 08:17:57.69907029 UTC 1272M 5973M
2025-04-08 08:18:02.699045715 UTC 1272M 5971M
2025-04-08 08:18:07.699039171 UTC 1274M 5969M

@github-actions

github-actions Bot commented Apr 8, 2025

Copy link
Copy Markdown

Transaction cost differences

Script summary

Name Size (Bytes)
νInitial -
νCommit -
νHead -
μHead -
νDeposit -

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
40 - - - -

Commit transaction costs

UTxO Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
54 - - - -

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 - - - - -
2 - - - - -
3 - - - - -
4 - - - - -
5 - - - - -
6 - - - - -
7 - - - - -
8 - - - - -

Cost of Increment Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - +0.39 +0.09 -
2 - - - -
3 - $${\color{green}-0.39}$$ $${\color{green}-0.09}$$ -
5 - $${\color{green}-0.39}$$ $${\color{green}-0.09}$$ -
10 - $${\color{green}-0.39}$$ $${\color{green}-0.09}$$ $${\color{green}-0.01}$$
37 - - - -

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
40 - - - -

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
34 - - - -

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 - - - -
2 - - - -
3 - - - -
5 - - - -
10 - - - -
27 - - - -

FanOut transaction costs

UTxO, Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
(0, 10) - - - - -
(1, 10) - - - - -
(5, 10) - - - - -
(10, 10) - - - - -
(20, 10) - - - - -
(37, 10) - - - - -

@noonio
noonio merged commit 6ede5c9 into master Apr 8, 2025
@noonio
noonio deleted the default-cperiod-and-ddeadline branch April 8, 2025 15:34
@github-project-automation github-project-automation Bot moved this from In review 👀 to Done ✔ in ☕ Hydra Team Work Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Find better defaults for --contestation-period and --deposit-deadline

2 participants