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

Update --start-chain-from in hydra-explorer #1461

Closed v0d1ch closed 1 month ago

v0d1ch commented 1 month ago

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-05-31 08:30:31.789474442 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 4823 5.99 2.36 0.43
2 5017 7.29 2.86 0.45
3 5221 8.74 3.44 0.48
5 5623 11.39 4.48 0.52
10 6629 18.61 7.33 0.65
58 16278 85.79 33.82 1.80

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 556 9.69 3.82 0.28
2 747 12.48 5.10 0.32
3 934 15.33 6.40 0.36
5 1310 21.26 9.09 0.45
10 2248 37.35 16.27 0.67
25 5061 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.78 5.90 0.34
2 114 654 22.80 9.23 0.43
3 169 768 32.71 13.37 0.54
4 227 874 44.77 18.41 0.68
5 283 988 59.18 24.42 0.85
6 340 1095 75.46 31.24 1.03
7 394 1205 87.85 36.72 1.18

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 595 8.31 4.60 0.28
2 730 9.01 5.66 0.30
3 819 9.26 6.37 0.31
5 1187 11.40 9.14 0.36
10 1905 15.89 15.15 0.47
50 4770 41.08 24.97 0.87

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 633 8.60 4.72 0.28
2 802 9.82 6.15 0.31
3 959 10.42 7.18 0.33
5 1192 11.87 9.30 0.37
10 1986 16.55 15.58 0.48
50 7873 49.80 62.24 1.35

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 4689 16.96 7.34 0.55
2 4819 27.69 12.08 0.67
3 4987 42.15 18.52 0.84
4 5064 56.62 24.84 1.01
5 5135 69.91 30.57 1.16
6 5270 95.07 41.74 1.45

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 8.03 3.36 0.44
5 1 57 4685 9.18 4.07 0.46
5 5 285 4821 13.79 6.92 0.52
5 10 570 4991 19.55 10.48 0.60
5 20 1140 5331 31.08 17.61 0.76
5 30 1709 5672 42.82 24.83 0.92
5 40 2272 6006 53.72 31.71 1.08
5 50 2842 6346 65.26 38.85 1.24
5 79 4492 7328 99.18 59.76 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-05-31 08:33:04.107021664 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 5.353443743
P99 14.594331619999979ms
P95 7.323207350000001ms
P50 5.0167175ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 24.176404333
P99 65.23945349000013ms
P95 33.961497099999995ms
P50 21.85005ms
Number of Invalid txs 0
github-actions[bot] commented 1 month ago

Test Results

436 tests  ±0   424 :white_check_mark: ±0   15m 24s :stopwatch: -22s 143 suites ±0    12 :zzz: ±0    5 files   ±0     0 :x: ±0 

Results for commit e4a7f27f. ± Comparison against base commit aa4c887b.