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

Introduce cardano-api-classy #1342

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

locallycompact
Copy link
Contributor

RFC. Simplifies the prelude imports a lot, this package depends only on cardano libraries and so could be offered upstream. Naming scheme is to be consistent with IsShelleyBasedEra from upstream.


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

Copy link

github-actions bot commented Mar 7, 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-07 13:30:37.908057566 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 4796 8.78 3.35 0.46
2 4995 10.82 4.14 0.49
3 5201 12.66 4.84 0.52
5 5599 16.77 6.43 0.58
10 6604 26.54 10.19 0.73
48 14244 99.97 38.37 1.86

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 782 13.88 5.64 0.34
3 966 17.66 7.29 0.39
5 1346 25.66 10.74 0.49
10 2272 48.19 20.30 0.79
19 3962 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 113 654 27.35 10.88 0.48
3 171 764 38.47 15.47 0.61
4 226 874 53.22 21.48 0.77
5 284 984 65.72 26.81 0.92
6 339 1095 82.55 33.82 1.11

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 595 8.29 4.60 0.28
2 753 9.04 5.69 0.30
3 935 10.11 7.07 0.32
5 1166 11.60 9.20 0.36
10 1345 14.48 7.95 0.38
50 8037 51.15 63.57 1.38

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 631 8.69 4.74 0.28
2 754 9.34 5.78 0.30
3 888 10.06 6.85 0.32
5 1226 11.85 9.32 0.37
10 2077 17.32 16.09 0.50
50 7951 50.91 62.87 1.36

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 4677 17.00 7.36 0.55
2 4742 24.68 10.61 0.63
3 5009 43.56 19.19 0.86
4 5031 53.82 23.52 0.98
5 5048 65.84 28.61 1.11
6 5280 88.62 38.76 1.38

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 4627 7.85 3.28 0.44
5 1 57 4662 8.58 3.81 0.45
5 5 284 4796 13.61 6.84 0.52
5 10 569 4966 19.16 10.31 0.60
5 20 1136 5303 30.90 17.53 0.76
5 30 1705 5644 42.93 24.88 0.92
5 40 2278 5987 53.96 31.81 1.08
5 50 2843 6323 65.59 38.98 1.24
5 79 4493 7305 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-07 13:33:26.037060304 UTC

Baseline Scenario

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 22.227816324
P99 104.32278805000013ms
P95 31.75293759999999ms
P50 19.649772ms
Number of Invalid txs 0

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.230364124
P99 9.234173789999994ms
P95 5.022642649999996ms
P50 4.0260875ms
Number of Invalid txs 0

Copy link
Collaborator

@ch1bo ch1bo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

cardano-api-classy/cardano-api-classy.cabal Outdated Show resolved Hide resolved
@locallycompact locallycompact merged commit b50444b into master Mar 7, 2024
20 checks passed
@locallycompact locallycompact deleted the lc/cardano-api-classy branch March 7, 2024 13:36
@ch1bo ch1bo added this to the 0.16.0 milestone Apr 3, 2024
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