cardano-scaling / hydra

Implementation of the Hydra Head protocol
https://hydra.family/head-protocol/
Apache License 2.0
274 stars 84 forks source link

Landing page amends #1560

Closed fstoqnov-iohk closed 1 month ago

fstoqnov-iohk commented 1 month ago

Landing page amends - copy and design from jira/slack comments

github-actions[bot] commented 1 month ago

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-08-14 07:14:59.27317486 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 bd9fad235c871fb7f837c767593018a84be3083ff80f9dab5f1c55f9 10194
μHead c8038945816586c4d38926ee63bba67821eb863794220ebbd0bf79ee* 4607
Parties Tx size % max Mem % max CPU Min fee ₳
1 5189 5.93 2.35 0.44
2 5389 7.31 2.90 0.47
3 5591 8.69 3.44 0.49
5 5994 11.49 4.55 0.54
10 6996 18.38 7.28 0.66
56 16247 81.47 32.22 1.76

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 557 10.52 4.15 0.29
2 749 13.86 5.65 0.34
3 931 17.33 7.20 0.38
5 1309 24.65 10.44 0.48
10 2249 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 553 21.46 8.41 0.41
2 113 659 34.01 13.45 0.55
3 170 773 45.25 18.12 0.68
4 227 879 62.46 25.12 0.87
5 282 989 79.88 32.33 1.07
6 338 1100 94.40 38.55 1.24

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 615 17.96 7.88 0.38
2 770 19.36 9.16 0.41
3 923 20.51 10.36 0.43
5 1203 23.45 12.87 0.49
10 2106 36.35 21.53 0.69
50 7928 97.23 74.39 1.82

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 672 21.02 9.43 0.42
2 777 22.49 10.81 0.44
3 967 24.18 12.48 0.48
5 1222 27.24 15.33 0.53
10 1970 35.16 22.91 0.69
50 7977 99.41 83.78 1.91

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 624 26.72 11.32 0.48
2 863 29.36 13.53 0.52
3 937 30.64 14.66 0.54
5 1248 34.61 18.03 0.61
10 2025 43.93 26.13 0.78
39 6519 99.84 73.86 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 4978 13.95 5.82 0.52
2 5265 29.38 12.97 0.71
3 5366 42.52 18.82 0.87
4 5411 56.96 25.18 1.03
5 5642 77.16 34.35 1.27
6 5838 99.87 44.55 1.54

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 5022 7.75 3.28 0.46
5 1 57 5056 9.08 4.08 0.48
5 5 285 5193 13.60 6.92 0.54
5 10 569 5362 19.06 10.39 0.62
5 20 1139 5701 30.58 17.60 0.78
5 30 1710 6044 41.70 24.63 0.93
5 40 2277 6382 52.84 31.67 1.09
5 50 2849 6724 64.56 38.97 1.25
5 81 4616 7778 99.33 60.93 1.73

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-08-14 07:17:19.358539754 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 3.971672035
P99 7.123070419999988ms
P95 4.6571370499999984ms
P50 3.7664945000000003ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 23.068941788
P99 116.1372108ms
P95 32.003255649999986ms
P50 20.2208445ms
Number of Invalid txs 0
github-actions[bot] commented 1 month ago

Test Results

467 tests  ±0   460 :white_check_mark: ±0   17m 55s :stopwatch: +16s 148 suites ±0     7 :zzz: ±0    5 files   ±0     0 :x: ±0 

Results for commit 8b55d0ae. ± Comparison against base commit 729216b3.

:recycle: This comment has been updated with latest results.