cardano-scaling / hydra

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

Docs: use primary/secondary color from style guide #1566

Closed ch1bo closed 4 weeks ago

ch1bo commented 4 weeks ago

After making used colors more consistent in their hues, and trying several color schemes (see individual commits), this PR is about using the two main colors from the style guide being used as primary/secondary.

This excludes the "Link Teal" color from the style guide because it's just too inconsistent with other UI elements to be used (IMO).

Here are some previews:

image

image

image


github-actions[bot] commented 4 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-15 13:33:13.240215636 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.79 2.29 0.44
2 5387 7.40 2.93 0.47
3 5588 8.56 3.39 0.49
5 5994 11.32 4.48 0.54
10 6998 18.06 7.14 0.66
56 16247 81.76 32.34 1.76

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 559 10.52 4.15 0.29
2 743 13.86 5.65 0.34
3 934 17.33 7.20 0.38
5 1310 24.65 10.44 0.48
10 2250 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 114 659 32.09 12.73 0.53
3 170 769 47.40 18.92 0.70
4 226 879 58.96 23.84 0.84
5 283 989 74.97 30.49 1.02
6 340 1100 91.23 37.38 1.21

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 634 17.71 7.79 0.38
2 751 19.36 9.16 0.41
3 909 19.89 10.04 0.42
5 1204 23.53 12.90 0.49
10 1985 32.05 19.86 0.64
50 8082 99.01 75.03 1.85

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 646 20.98 9.39 0.42
2 852 22.86 11.15 0.45
3 1068 24.68 12.90 0.49
5 1298 27.84 15.91 0.55
10 1917 34.97 22.66 0.68
50 7894 97.83 82.77 1.88

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 669 27.18 11.67 0.48
2 754 28.56 12.86 0.51
3 936 30.64 14.66 0.54
5 1157 33.81 17.36 0.60
10 1989 43.75 25.96 0.78
38 6325 97.90 72.43 1.74

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 5075 17.47 7.60 0.57
2 5198 28.58 12.53 0.70
3 5253 37.68 16.47 0.80
4 5539 59.59 26.49 1.07
5 5596 75.73 33.66 1.25
6 5744 97.41 43.39 1.50

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.56 3.20 0.46
5 1 57 5056 9.28 4.16 0.48
5 5 285 5192 13.60 6.92 0.54
5 10 569 5361 19.06 10.39 0.62
5 20 1137 5699 30.19 17.43 0.77
5 30 1707 6042 41.90 24.72 0.93
5 40 2276 6380 53.03 31.76 1.09
5 50 2848 6722 64.17 38.80 1.24
5 81 4608 7769 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-15 13:35:49.372542967 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.702383910
P99 12.681839149999984ms
P95 5.800288899999996ms
P50 4.216922ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.950688810
P99 45.93025296000012ms
P95 31.49197789999999ms
P50 20.8738455ms
Number of Invalid txs 0
github-actions[bot] commented 4 weeks ago

Test Results

468 tests  ±0   461 :white_check_mark: ±0   17m 3s :stopwatch: -22s 149 suites ±0     7 :zzz: ±0    5 files   ±0     0 :x: ±0 

Results for commit 23fa07de. ± Comparison against base commit 97897dee.

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

ch1bo commented 4 weeks ago

We decided to stick to our original color scheme: https://github.com/cardano-scaling/hydra/pull/1567