Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental decommit in tui #1518

Merged
merged 6 commits into from
Jul 23, 2024
Merged

Incremental decommit in tui #1518

merged 6 commits into from
Jul 23, 2024

Conversation

ffakenz
Copy link
Contributor

@ffakenz ffakenz commented Jul 19, 2024

Fixes #1517


  • CHANGELOG updated or not needed
  • Documentation updated or not needed
  • Haddocks updated or not needed
  • No new TODOs introduced or explained herafter

@ffakenz ffakenz self-assigned this Jul 19, 2024
@ffakenz ffakenz changed the base branch from master to feature/incremental-decommit July 19, 2024 09:45
@ffakenz ffakenz force-pushed the feature/tui-incremental-decommit branch 2 times, most recently from b4ac06b to 63ebc2a Compare July 19, 2024 09:48
Copy link

github-actions bot commented Jul 19, 2024

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-07-23 08:14:30.647151749 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 7ae23bc9f0833a5689b9fc812dd92fbe9dac881a632f14b28e8eb8db 10193
μHead 3ebfb5b268e0c94200e2c8a8eeebf704aabf303a769af602edb3603a* 4607
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per head.

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 5188 5.85 2.31 0.44
2 5387 7.18 2.84 0.47
3 5594 8.37 3.30 0.49
5 5997 11.22 4.43 0.54
10 6998 18.02 7.12 0.66
56 16247 81.52 32.24 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 749 13.86 5.65 0.34
3 936 17.33 7.20 0.38
5 1303 24.65 10.44 0.48
10 2244 45.22 19.36 0.75
20 4115 95.99 40.76 1.40

CollectCom transaction costs

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 549 22.17 8.68 0.42
2 112 658 33.90 13.40 0.55
3 170 769 47.47 18.95 0.70
4 224 879 62.63 25.18 0.88
5 282 989 74.93 30.47 1.02
6 339 1100 92.22 37.76 1.22

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 622 17.96 7.88 0.38
2 790 19.36 9.17 0.41
3 894 20.65 10.39 0.43
5 1153 22.76 12.62 0.48
10 1840 29.73 19.00 0.61
49 7699 94.61 72.67 1.78

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 657 21.02 9.42 0.42
2 849 22.79 11.13 0.45
3 913 23.96 12.21 0.47
5 1171 26.82 14.99 0.53
10 2078 36.03 23.63 0.70
50 8041 99.64 84.28 1.92

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 623 26.76 11.34 0.48
2 763 28.56 12.86 0.51
3 991 31.14 15.05 0.55
5 1409 35.44 18.76 0.63
10 2010 43.98 26.01 0.78
39 6190 98.62 72.63 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 5076 17.47 7.60 0.57
2 5136 27.48 11.97 0.68
3 5318 41.56 18.33 0.85
4 5357 48.60 21.23 0.93
5 5568 75.80 33.67 1.25

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.95 3.36 0.46
5 1 57 5057 8.88 3.99 0.47
5 5 284 5191 13.41 6.84 0.54
5 10 569 5362 19.26 10.48 0.62
5 20 1139 5701 30.58 17.60 0.78
5 30 1707 6041 41.90 24.72 0.93
5 40 2280 6384 53.23 31.84 1.09
5 50 2847 6721 64.96 39.14 1.25
5 81 4610 7772 99.73 61.10 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-07-23 08:16:49.163920259 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 5.894443664
P99 16.484885849999973ms
P95 8.209742199999999ms
P50 5.0371135ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 24.817604812
P99 52.624454010000015ms
P95 33.78836635ms
P50 22.9287215ms
Number of Invalid txs 0

@ffakenz ffakenz force-pushed the feature/tui-incremental-decommit branch from 63ebc2a to 09d342b Compare July 19, 2024 13:11
@ch1bo ch1bo force-pushed the feature/incremental-decommit branch 2 times, most recently from 6eac887 to a3a1ce1 Compare July 22, 2024 06:42
@ch1bo ch1bo self-requested a review July 22, 2024 07:05
@ch1bo ch1bo force-pushed the feature/tui-incremental-decommit branch from 09d342b to cd60424 Compare July 22, 2024 07:11
Copy link

github-actions bot commented Jul 22, 2024

Test Results

464 tests   452 ✅  17m 43s ⏱️
148 suites   12 💤
  5 files      0 ❌

Results for commit 1b09027.

♻️ This comment has been updated with latest results.

@ch1bo ch1bo force-pushed the feature/tui-incremental-decommit branch from ca38c87 to 6daa29a Compare July 22, 2024 14:28
@v0d1ch v0d1ch force-pushed the feature/incremental-decommit branch from a3a1ce1 to 3467137 Compare July 22, 2024 19:54
@ch1bo ch1bo force-pushed the feature/tui-incremental-decommit branch from 77b6ca1 to 0bd5421 Compare July 23, 2024 08:10
@ch1bo ch1bo force-pushed the feature/incremental-decommit branch from 5600db5 to 105ff76 Compare July 23, 2024 08:41
@ch1bo ch1bo force-pushed the feature/tui-incremental-decommit branch from 0bd5421 to 1b09027 Compare July 23, 2024 08:41
Copy link

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-07-23 08:44:08.297844633 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 7ae23bc9f0833a5689b9fc812dd92fbe9dac881a632f14b28e8eb8db 10193
μHead 3ebfb5b268e0c94200e2c8a8eeebf704aabf303a769af602edb3603a* 4607
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per head.

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 5189 5.69 2.25 0.44
2 5390 7.27 2.88 0.47
3 5591 8.46 3.34 0.49
5 5994 11.39 4.51 0.54
10 6998 18.02 7.12 0.66
56 16247 81.43 32.21 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 745 13.86 5.65 0.34
3 936 17.33 7.20 0.38
5 1312 24.65 10.44 0.48
10 2241 45.22 19.36 0.75
20 4115 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 113 663 32.28 12.81 0.53
3 170 769 45.10 18.06 0.68
4 226 879 58.67 23.72 0.83
5 281 989 79.34 32.11 1.07
6 338 1100 98.37 40.04 1.28

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 638 17.71 7.79 0.38
2 760 18.64 8.82 0.40
3 1031 22.26 10.99 0.45
5 1236 23.45 12.87 0.49
10 2017 33.25 20.40 0.65
49 7875 97.55 73.74 1.82

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 646 20.98 9.39 0.42
2 855 22.86 11.16 0.45
3 975 24.18 12.50 0.48
5 1176 26.70 14.94 0.53
10 2093 35.91 23.59 0.70
50 8107 99.02 83.94 1.91

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 691 27.14 11.68 0.48
2 837 28.90 13.19 0.52
3 895 30.34 14.37 0.54
5 1266 34.72 18.09 0.62
10 2206 46.07 27.68 0.82
38 6325 97.32 71.94 1.73

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 5056 17.36 7.55 0.57
2 5135 25.09 10.86 0.66
3 5278 37.68 16.48 0.81
4 5544 59.61 26.51 1.07
5 5543 66.64 29.38 1.14
6 5767 93.95 41.81 1.46

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.75 3.28 0.46
5 1 57 5056 9.08 4.08 0.48
5 5 283 5190 13.80 7.01 0.54
5 10 569 5361 18.87 10.31 0.61
5 20 1137 5699 30.38 17.51 0.77
5 30 1709 6043 41.31 24.46 0.93
5 40 2276 6380 53.23 31.84 1.09
5 50 2846 6720 64.56 38.97 1.25
5 81 4607 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-07-23 08:46:42.173728871 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.595124230
P99 11.243477639999929ms
P95 5.734636999999988ms
P50 4.281394000000001ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 23.755808878
P99 57.831976040000015ms
P95 32.9947106ms
P50 21.484098ms
Number of Invalid txs 0

@ch1bo ch1bo force-pushed the feature/incremental-decommit branch from 105ff76 to a70a781 Compare July 23, 2024 08:50
@ch1bo ch1bo force-pushed the feature/tui-incremental-decommit branch from 1b09027 to d89b36b Compare July 23, 2024 08:54
Copy link

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-07-23 08:57:13.445715857 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 7ae23bc9f0833a5689b9fc812dd92fbe9dac881a632f14b28e8eb8db 10193
μHead 3ebfb5b268e0c94200e2c8a8eeebf704aabf303a769af602edb3603a* 4607
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per head.

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 5186 5.61 2.21 0.44
2 5394 7.07 2.79 0.46
3 5591 8.46 3.34 0.49
5 5993 11.12 4.39 0.54
10 6998 18.02 7.12 0.66
56 16246 81.43 32.21 1.76

Commit transaction costs

This uses ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 557 10.52 4.15 0.29
2 742 13.86 5.65 0.34
3 930 17.33 7.20 0.38
5 1309 24.65 10.44 0.48
10 2239 45.22 19.36 0.75
20 4118 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 663 33.97 13.43 0.55
3 171 769 45.26 18.13 0.68
4 226 879 61.03 24.59 0.86
5 282 989 79.19 32.06 1.06
6 340 1100 97.90 39.85 1.28

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 634 17.93 7.88 0.38
2 718 17.84 8.52 0.39
3 963 20.80 10.38 0.44
5 1272 24.98 13.52 0.51
10 1995 33.65 20.53 0.66
49 7715 96.66 73.49 1.80

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 647 21.02 9.41 0.42
2 844 22.86 11.16 0.45
3 984 24.26 12.54 0.48
5 1244 27.08 15.29 0.53
10 2101 35.91 23.60 0.70
49 7686 95.45 80.80 1.84

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 688 27.18 11.69 0.48
2 864 29.34 13.53 0.52
3 978 31.13 15.03 0.55
5 1240 34.68 18.05 0.62
10 2148 45.53 27.27 0.81
39 6420 98.69 73.18 1.76

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 5055 17.51 7.61 0.57
2 5259 29.57 13.04 0.71
3 5212 36.60 15.92 0.79
4 5423 53.92 23.79 1.00
5 5628 72.68 32.23 1.22

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 57 5056 8.69 3.91 0.47
5 5 285 5193 13.60 6.92 0.54
5 10 569 5361 19.06 10.39 0.62
5 20 1140 5702 30.38 17.51 0.77
5 30 1706 6041 41.51 24.55 0.93
5 40 2275 6379 53.23 31.84 1.09
5 50 2845 6719 64.76 39.06 1.25
5 81 4606 7768 99.62 61.05 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-07-23 08:59:53.166068988 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 5.222286034
P99 9.936988809999994ms
P95 6.926216349999998ms
P50 4.963436ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 24.127021049
P99 71.58573134000241ms
P95 32.9112434ms
P50 21.7847335ms
Number of Invalid txs 0

Base automatically changed from feature/incremental-decommit to master July 23, 2024 10:31
@ch1bo ch1bo force-pushed the feature/tui-incremental-decommit branch from d89b36b to dcf2fe6 Compare July 23, 2024 10:35
@ch1bo ch1bo enabled auto-merge July 23, 2024 10:39
@ch1bo ch1bo merged commit 8342d44 into master Jul 23, 2024
18 checks passed
@ch1bo ch1bo deleted the feature/tui-incremental-decommit branch July 23, 2024 10:43
Copy link

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-07-23 11:01:06.472854558 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 7ae23bc9f0833a5689b9fc812dd92fbe9dac881a632f14b28e8eb8db 10193
μHead 3ebfb5b268e0c94200e2c8a8eeebf704aabf303a769af602edb3603a* 4607
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per head.

Init transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 5189 5.81 2.30 0.44
2 5390 7.18 2.84 0.47
3 5588 8.56 3.39 0.49
5 5993 11.26 4.45 0.54
10 6999 18.38 7.28 0.66
56 16246 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 746 13.86 5.65 0.34
3 937 17.33 7.20 0.38
5 1307 24.65 10.44 0.48
10 2250 45.22 19.36 0.75
20 4110 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 33.93 13.42 0.55
3 170 769 45.39 18.18 0.68
4 226 879 62.53 25.14 0.88
5 283 989 80.03 32.39 1.07
6 340 1100 97.53 39.69 1.27

Cost of Decrement Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 640 17.96 7.90 0.38
2 795 18.61 8.80 0.40
3 848 19.17 9.77 0.41
5 1198 23.56 12.92 0.49
10 1943 33.37 20.43 0.65
50 7904 99.08 75.19 1.84

Close transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 596 20.60 9.07 0.41
2 786 22.62 10.94 0.45
3 946 24.26 12.50 0.48
5 1177 26.66 14.93 0.53
10 2085 35.51 23.36 0.70
50 7831 97.95 82.77 1.88

Contest transaction costs

Parties Tx size % max Mem % max CPU Min fee ₳
1 623 26.76 11.34 0.48
2 823 28.98 13.22 0.52
3 937 30.72 14.69 0.55
5 1206 34.15 17.67 0.61
10 1987 44.08 26.17 0.78
38 6218 98.20 72.33 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 5074 17.32 7.54 0.57
2 5259 29.30 12.94 0.71
3 5293 41.66 18.36 0.85
4 5480 58.25 25.82 1.05
5 5492 67.03 29.51 1.15
6 5770 96.61 43.09 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.95 3.36 0.46
5 1 57 5056 9.08 4.08 0.48
5 5 285 5193 13.21 6.75 0.53
5 10 568 5360 19.06 10.39 0.62
5 20 1140 5702 30.58 17.60 0.78
5 30 1708 6042 41.90 24.72 0.93
5 40 2274 6378 52.84 31.67 1.09
5 50 2844 6718 64.45 38.92 1.25
5 81 4607 7768 99.14 60.84 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-07-23 10:41:07.159939741 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 3.964458419
P99 8.55323176999999ms
P95 4.804950299999999ms
P50 3.743617ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.842029533
P99 114.39313516ms
P95 32.4264434ms
P50 20.022088ms
Number of Invalid txs 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incremental decommit in tui
2 participants