cardano-scaling / hydra

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

API server TLS support #1555

Closed ch1bo closed 1 month ago

ch1bo commented 1 month ago

This was requested by @Quantumplation for the hydra-doom demo, so will be backported to doom branch.


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 08:12:40.678191077 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 5186 5.93 2.35 0.44
2 5389 7.03 2.77 0.46
3 5588 8.37 3.30 0.49
5 5994 11.12 4.39 0.54
10 6998 18.02 7.12 0.66
56 16244 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 556 10.52 4.15 0.29
2 748 13.86 5.65 0.34
3 937 17.33 7.20 0.38
5 1313 24.65 10.44 0.48
10 2242 45.22 19.36 0.75
20 4101 95.99 40.76 1.40

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 549 22.14 8.66 0.42
2 114 659 32.95 13.05 0.54
3 169 773 43.87 17.60 0.67
4 227 879 61.14 24.63 0.86
5 281 989 73.72 30.03 1.01
6 337 1100 93.13 38.08 1.23

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 631 17.96 7.89 0.38
2 820 20.22 9.48 0.42
3 848 19.13 9.75 0.41
5 1315 25.12 13.50 0.51
10 2086 34.48 20.85 0.67
48 7721 94.82 71.96 1.77

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 644 20.98 9.40 0.42
2 826 22.86 11.13 0.45
3 936 23.96 12.24 0.47
5 1194 26.86 15.03 0.53
10 2051 35.76 23.36 0.70
50 7900 98.92 83.33 1.90

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 696 27.14 11.67 0.48
2 807 28.94 13.18 0.51
3 953 30.74 14.71 0.55
5 1311 35.10 18.41 0.62
10 1964 43.63 25.83 0.78
40 6431 99.91 74.23 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 5080 17.43 7.59 0.57
2 5176 28.46 12.47 0.70
3 5364 42.87 18.97 0.87
4 5471 57.74 25.62 1.04
5 5670 73.90 32.86 1.23
6 5735 92.48 41.09 1.45

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.95 3.36 0.46
5 1 56 5055 9.08 4.08 0.48
5 5 284 5192 13.01 6.67 0.53
5 10 570 5362 19.26 10.48 0.62
5 20 1140 5703 30.58 17.60 0.78
5 30 1709 6044 41.70 24.63 0.93
5 40 2275 6379 53.03 31.76 1.09
5 50 2846 6721 64.56 38.97 1.25
5 81 4611 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-14 08:15:36.352962756 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.888381247
P99 8.939781999999985ms
P95 6.735072549999997ms
P50 4.6460695ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.880042749
P99 106.62544674000019ms
P95 31.110194999999997ms
P50 20.5485435ms
Number of Invalid txs 0
github-actions[bot] commented 1 month ago

Test Results

468 tests  +1   461 :white_check_mark: +1   17m 49s :stopwatch: -13s 149 suites +1     7 :zzz: ±0    5 files   ±0     0 :x: ±0 

Results for commit a0832249. ± Comparison against base commit 30148ce5.

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