cardano-scaling / hydra

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

Use streaming layered images instead of building #1576

Closed noonio closed 3 weeks ago

noonio commented 3 weeks ago

github-actions[bot] commented 3 weeks 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-19 13:59:42.933747895 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 5188 5.65 2.23 0.44
2 5389 7.09 2.80 0.46
3 5588 8.41 3.32 0.49
5 5993 11.22 4.43 0.54
10 6998 18.20 7.20 0.66
56 16250 81.63 32.29 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 745 13.86 5.65 0.34
3 930 17.33 7.20 0.38
5 1306 24.65 10.44 0.48
10 2240 45.22 19.36 0.75
20 4122 95.99 40.76 1.40

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 549 21.46 8.41 0.41
2 113 659 33.85 13.39 0.55
3 171 769 44.31 17.78 0.67
4 226 879 61.13 24.63 0.86
5 282 989 75.02 30.51 1.02
6 337 1100 95.23 38.86 1.25

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 622 17.96 7.88 0.38
2 833 19.84 9.34 0.41
3 848 19.13 9.75 0.41
5 1233 23.64 12.95 0.49
10 1855 30.29 19.20 0.62
50 7958 98.74 74.95 1.84

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 648 21.02 9.41 0.42
2 735 21.99 10.44 0.44
3 986 24.22 12.51 0.48
5 1193 26.82 15.00 0.53
10 2010 35.50 23.09 0.69
50 7952 99.27 83.66 1.91

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 677 27.18 11.68 0.48
2 854 29.36 13.52 0.52
3 941 30.60 14.65 0.54
5 1275 34.65 18.06 0.62
10 1950 43.82 25.89 0.78
40 6405 99.91 74.15 1.77

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 5090 17.36 7.56 0.57
2 5133 27.44 11.95 0.68
3 5241 40.37 17.72 0.83
4 5454 58.39 25.87 1.05
5 5590 75.47 33.55 1.25

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 8.15 3.45 0.46
5 1 57 5056 8.88 3.99 0.47
5 5 285 5192 13.80 7.01 0.54
5 10 569 5362 19.06 10.39 0.62
5 20 1138 5700 30.38 17.51 0.77
5 30 1705 6039 41.31 24.46 0.93
5 40 2276 6380 53.23 31.84 1.09
5 50 2846 6721 64.56 38.97 1.25
5 81 4610 7772 99.53 61.01 1.74

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-19 14:02:10.352915247 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.441936120
P99 9.16945522ms
P95 5.43454075ms
P50 4.215396999999999ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 23.061554537
P99 116.48846835000003ms
P95 31.479179649999995ms
P50 20.40858ms
Number of Invalid txs 0
github-actions[bot] commented 3 weeks ago

Test Results

469 tests  ±0   462 :white_check_mark: ±0   17m 0s :stopwatch: -31s 150 suites ±0     7 :zzz: ±0    5 files   ±0     0 :x: ±0 

Results for commit ae912da9. ± Comparison against base commit e7beaea2.