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

Change queryUTxO to queryCurrentEra in the same n2c connection #1228

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

ch1bo
Copy link
Collaborator

@ch1bo ch1bo commented Jan 2, 2024

This allows us to keep the same era agnostic interface, while we convert the arbitrary era UTxO into our canonical (Babbage) UTxO


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

@ch1bo ch1bo requested a review from ffakenz January 2, 2024 15:52
@ffakenz ffakenz force-pushed the ensemble/survive-conway-fork-2 branch from ab4f8a2 to 52827ef Compare January 2, 2024 16:05
@ffakenz ffakenz marked this pull request as ready for review January 2, 2024 16:07
Copy link

github-actions bot commented Jan 2, 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-01-02 16:18:11.615613262 UTC
Max. memory units 14000000
Max. CPU units 10000000000
Max. tx size (kB) 16384

Script summary

Name Hash Size (Bytes)
νInitial 985245919fcc6c0c5cd116023cd2c947c43e80dcbb5075fe12433fbb 4072
νCommit 7cb20fa71eb4c563ca283566ebe0aa65859d96c3f8cba35c52c181fd 2043
νHead 7a36661f5c15e9f1783aeaab890812c59b7286cbbc6de762d3110772 8816
μHead 8b111ac12274e46314769295a1c5dcab1d260096fc469fd698065463* 3851
  • 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 4372 10.46 4.04 0.46
2 4576 12.57 4.83 0.49
3 4777 14.79 5.67 0.52
5 5184 19.22 7.35 0.59
10 6189 30.62 11.69 0.75
41 12418 98.92 37.55 1.77

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 531 11.37 4.44 0.30
2 724 15.04 6.07 0.35
3 912 18.85 7.75 0.40
5 1287 26.90 11.27 0.51
10 2223 49.55 20.97 0.80
19 3910 99.43 41.75 1.43

Cost of CollectCom Transaction

Parties UTxO (bytes) Tx size % max Mem % max CPU Min fee ₳
1 57 480 21.12 8.27 0.40
2 113 590 34.20 13.46 0.55
3 170 704 45.67 18.18 0.68
4 226 810 59.14 23.75 0.83
5 282 920 77.67 31.28 1.04
6 339 1031 94.87 38.42 1.24

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 544 16.72 7.69 0.36
2 713 18.49 9.31 0.40
3 865 19.82 10.60 0.42
5 1266 23.67 14.15 0.50
10 2034 31.66 21.57 0.65
50 8840 97.14 82.63 1.92

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 582 20.27 8.98 0.40
2 700 21.76 10.31 0.43
3 891 23.75 12.02 0.47
5 1319 28.20 15.80 0.55
10 2087 36.91 23.48 0.71
42 7274 95.55 73.92 1.78

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 4326 18.89 8.13 0.55
2 4489 32.01 13.95 0.71
3 4682 47.48 20.85 0.89
4 4797 65.96 29.03 1.10
5 4897 80.56 35.32 1.27

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 4206 8.26 3.46 0.43
5 1 57 4239 9.36 4.17 0.44
5 5 285 4375 14.40 7.27 0.51
5 10 570 4545 20.43 11.03 0.59
5 20 1140 4885 32.51 18.57 0.76
5 30 1706 5223 44.94 26.25 0.93
5 40 2279 5567 57.46 33.97 1.10
5 50 2842 5900 69.77 41.61 1.27
5 74 4209 6714 99.13 59.87 1.68

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-01-02 16:20:40.935672039 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 23.125342526
P99 116.31311713000004ms
P95 31.890443499999993ms
P50 20.099134ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 3.940035385
P99 5.140066749999997ms
P95 4.59939755ms
P50 3.8612055ms
Number of Invalid txs 0

@ffakenz ffakenz force-pushed the ensemble/survive-conway-fork-2 branch 2 times, most recently from db327e3 to f0dddea Compare January 2, 2024 16:15
This allows us to keep the same era agnostic interface, while we convert
the arbitrary era UTxO into our canonical (Babbage) UTxO
Copy link

github-actions bot commented Jan 2, 2024

Test Results

388 tests   383 ✅  21m 46s ⏱️
132 suites    5 💤
  5 files      0 ❌

Results for commit a90a65e.

@ffakenz ffakenz merged commit 9d0d3a1 into ensemble/survive-conway-fork-2 Jan 2, 2024
21 checks passed
@ffakenz ffakenz deleted the query-in-same-connection branch January 2, 2024 16:28
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