input-output-hk / hydra

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

Add hydra-cluster to macos release zip #1455

Closed ch1bo closed 3 weeks ago

ch1bo commented 1 month ago

See if our CI can build binaries that @yhsJ can use directly.


github-actions[bot] commented 1 month ago

Transactions 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-06-04 16:23:18.793010541 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial baafeb5dc37bbe6e068784746bda0a3b1bb1d034fa0c55270f6079c1 4082
νCommit fe7af84822bcba542fae377ae7311fc5fd20152f925ccd980f73ecdc 2061
νHead 93c08c55e804d7f82ca545a01883b5fda6a6d3623cb78885625800ae 9366
μHead 5e65c73722b4bb3f0cbfcc8433e1dcdfea099eaf0a43060f1731a65b* 4237
Parties Tx size % max Mem % max CPU Min fee ₳
1 4818 6.17 2.43 0.43
2 5024 7.33 2.88 0.45
3 5218 8.78 3.45 0.48
5 5621 11.50 4.52 0.52
10 6626 18.61 7.33 0.65
58 16279 86.04 33.93 1.81

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 557 9.69 3.82 0.28
2 741 12.48 5.10 0.32
3 934 15.33 6.40 0.36
5 1308 21.26 9.09 0.45
10 2246 37.35 16.27 0.67
25 5060 96.42 41.75 1.45

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 544 14.55 5.82 0.33
2 113 658 23.48 9.48 0.44
3 170 764 33.52 13.67 0.55
4 225 874 45.01 18.49 0.69
5 283 984 56.85 23.56 0.82
6 339 1095 74.74 30.97 1.03
7 395 1205 92.17 38.31 1.22

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 588 8.27 4.58 0.28
2 736 9.01 5.67 0.30
3 904 9.95 6.98 0.32
5 1136 11.07 8.84 0.35
10 2001 15.92 15.37 0.48
50 7954 49.85 62.47 1.35

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 636 8.60 4.73 0.28
2 771 9.33 5.79 0.30
3 937 10.51 7.20 0.33
5 1223 11.82 9.31 0.37
10 2084 17.28 16.15 0.50
50 8035 51.25 63.16 1.37

Cost of Abort Transaction

Some variation because of random mixture of still initial and already committed outputs.

Parties Tx size % max Mem % max CPU Min fee ₳
1 4698 17.09 7.39 0.55
2 4759 26.88 11.64 0.66
3 4851 33.76 14.49 0.74
4 5070 53.91 23.57 0.98
5 5313 79.27 34.97 1.28
6 5407 99.80 44.02 1.51

Cost of FanOut Transaction

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 4651 7.82 3.27 0.44
5 1 57 4685 8.97 3.98 0.46
5 5 285 4821 13.58 6.83 0.52
5 10 570 4991 19.34 10.39 0.60
5 20 1139 5330 30.66 17.43 0.76
5 30 1708 5672 42.40 24.66 0.92
5 40 2275 6008 53.72 31.71 1.08
5 50 2845 6348 65.68 39.03 1.24
5 79 4498 7335 98.97 59.67 1.70

End-To-End Benchmark Results

This page is intended to collect the latest end-to-end benchmarks results produced by Hydra's Continuous Integration system from the latest master code.

Please take those results with a grain of salt as they are currently produced from very limited cloud VMs and not controlled hardware. Instead of focusing on the absolute results, the emphasis should be on relative results, eg. how the timings for a scenario evolve as the code changes.

Generated at 2024-06-04 16:25:41.078949326 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.780286195
P99 9.514316829999984ms
P95 6.1203340499999985ms
P50 4.5448745ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 21.743198713
P99 102.48054937ms
P95 30.09735414999998ms
P50 19.296155499999998ms
Number of Invalid txs 0
github-actions[bot] commented 1 month ago

Test Results

436 tests   424 :white_check_mark:  14m 55s :stopwatch: 143 suites   12 :zzz:   5 files      0 :x:

Results for commit 89bcb229.

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