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

Fix hydraw new tx cboHex decoding #1372

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

ffakenz
Copy link
Contributor

@ffakenz ffakenz commented Mar 22, 2024

Hydra 0.16 drops JSON encoding of transactions in favour of a CBOR representation only. This updates the hydraw submodule to decode the new format.

Needed for #1213


  • 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 Mar 22, 2024
Copy link

github-actions bot commented Mar 22, 2024

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-03-22 13:12:20.812555545 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial bccf2a430c016bc960fbf31b02694011cd399d20da8882aac9d33611 4110
νCommit 56b0f0b597150e619c76bed60683f3b1e42d7bc0685ed951b882bfc5 1975
νHead 86bff95ba20e9d1d1b34899a56d86bbacc9fed999260b27dcc92d128 9351
μHead 88f533cf67cd0fc93d7d9ccf0a8b1d69ffd1208a825efbebbc1d36ba* 4213
  • The minting policy hash is only usable for comparison. As the script is parameterized, the actual script is unique per Head.

Cost of Init Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 4795 8.87 3.39 0.46
2 4996 11.00 4.22 0.49
3 5197 12.93 4.96 0.52
5 5599 16.43 6.29 0.57
10 6605 26.27 10.07 0.73
47 14044 98.21 37.70 1.83

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 594 10.24 4.04 0.29
2 784 13.88 5.64 0.34
3 972 17.66 7.29 0.39
5 1339 25.66 10.74 0.49
10 2275 48.19 20.30 0.79
19 3957 97.83 40.79 1.41

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 544 16.56 6.55 0.36
2 114 654 26.39 10.53 0.47
3 169 768 39.86 15.98 0.62
4 226 874 50.64 20.55 0.75
5 282 984 68.48 27.82 0.95
6 338 1095 83.08 34.00 1.11

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 595 8.34 4.61 0.28
2 811 9.45 6.03 0.31
3 722 9.48 4.74 0.29
5 1191 11.48 9.17 0.36
10 1944 15.86 15.16 0.47
50 7948 49.53 62.25 1.35

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 577 8.24 4.39 0.27
2 716 8.97 5.47 0.29
3 913 10.07 6.88 0.32
5 1281 12.21 9.64 0.37
10 2292 18.24 17.04 0.52
50 8228 51.49 63.85 1.39

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 4664 17.05 7.37 0.55
2 4782 27.87 12.14 0.67
3 4886 37.38 16.22 0.78
4 5136 59.63 26.26 1.05
5 5208 75.55 33.26 1.23
6 5339 96.22 42.35 1.47

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 4628 8.27 3.45 0.45
5 1 57 4661 9.00 3.99 0.46
5 5 285 4798 13.40 6.75 0.52
5 10 566 4964 19.37 10.40 0.60
5 20 1140 5307 30.90 17.53 0.76
5 30 1707 5647 42.22 24.58 0.92
5 40 2276 5985 53.75 31.72 1.08
5 50 2848 6327 65.92 39.13 1.24
5 79 4496 7308 99.00 59.68 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-03-22 13:14:35.134584676 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 21.922319048
P99 113.84616373000001ms
P95 32.139690249999994ms
P50 19.115022500000002ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.733897289
P99 7.8619916599999895ms
P95 6.558373649999999ms
P50 4.516481ms
Number of Invalid txs 0

Copy link

github-actions bot commented Mar 22, 2024

Test Results

425 tests  ±0   418 ✅ ±0   15m 30s ⏱️ +10s
138 suites ±0     7 💤 ±0 
  5 files   ±0     0 ❌ ±0 

Results for commit a26e5b5. ± Comparison against base commit 706a66f.

♻️ This comment has been updated with latest results.

@ffakenz ffakenz force-pushed the ffakenz/fix-hydraw-hydra-0.16 branch from 7c2a7da to a26e5b5 Compare March 22, 2024 13:09
@ffakenz ffakenz requested a review from a team March 22, 2024 13:09
@ffakenz ffakenz merged commit d95bcf5 into master Mar 25, 2024
21 checks passed
@ffakenz ffakenz deleted the ffakenz/fix-hydraw-hydra-0.16 branch March 25, 2024 07:46
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.

2 participants