cardano-scaling / hydra

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

Fix demo persistence paths to ./devnet #1561

Closed noonio closed 1 month ago

noonio commented 1 month ago

Changes the hydra-node invocations in the demo ( nix run .#demo) to set the --persistence-dir to be the devnet folder, and updates the .gitignore accordingly.

The reason for this is now you can just rm -rf devnet and not have to remove a bunch of random files like acks and states and server-state ....


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-13 13:25:03.597536212 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.61 2.21 0.44
2 5389 7.09 2.80 0.46
3 5591 8.56 3.39 0.49
5 5993 11.21 4.43 0.54
10 6998 18.11 7.16 0.66
56 16247 81.53 32.25 1.76

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 554 10.52 4.15 0.29
2 745 13.86 5.65 0.34
3 931 17.33 7.20 0.38
5 1313 24.65 10.44 0.48
10 2249 45.22 19.36 0.75
20 4107 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 33.97 13.43 0.55
3 169 769 45.16 18.09 0.68
4 227 883 60.02 24.21 0.85
5 283 989 75.48 30.70 1.02
6 339 1100 98.27 39.99 1.28

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 614 17.71 7.79 0.38
2 754 18.53 8.77 0.40
3 984 21.40 10.69 0.44
5 1224 24.07 13.19 0.49
10 1963 32.08 19.87 0.64
50 7867 98.17 74.75 1.83

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 642 21.02 9.41 0.42
2 788 22.49 10.83 0.44
3 955 24.34 12.54 0.48
5 1320 27.92 15.95 0.55
10 2050 35.32 23.11 0.69
48 8034 97.72 82.49 1.89

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 675 27.14 11.66 0.48
2 762 28.56 12.86 0.51
3 1010 31.14 15.05 0.55
5 1260 34.65 18.05 0.62
10 2234 45.66 27.47 0.82
40 6458 99.72 74.10 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 5094 17.36 7.57 0.57
2 5133 25.17 10.89 0.66
3 5338 42.70 18.89 0.87
4 5577 61.15 27.24 1.09
5 5550 70.70 31.32 1.19
6 5827 95.58 42.59 1.49

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 5023 7.36 3.11 0.45
5 1 57 5056 8.69 3.91 0.47
5 5 285 5192 13.80 7.01 0.54
5 10 569 5361 19.26 10.48 0.62
5 20 1137 5700 30.38 17.51 0.77
5 30 1704 6038 41.90 24.72 0.93
5 40 2277 6381 52.92 31.71 1.09
5 50 2848 6723 64.37 38.89 1.25
5 81 4612 7774 99.92 61.18 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-13 13:27:33.376105068 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.449760051
P99 9.205753099999935ms
P95 5.0269544999999995ms
P50 3.913197ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 23.372921121
P99 105.20295724000005ms
P95 32.80612015ms
P50 20.9239675ms
Number of Invalid txs 0
github-actions[bot] commented 1 month ago

Test Results

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

Results for commit 16cf502b. ± Comparison against base commit 729216b3.