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

cardano-api: 8.46 -> 8.47 #1499

Closed
wants to merge 2 commits into from
Closed

cardano-api: 8.46 -> 8.47 #1499

wants to merge 2 commits into from

Conversation

locallycompact
Copy link
Contributor

No description provided.

@locallycompact locallycompact force-pushed the lc/cardano-api-8.47 branch 3 times, most recently from a5f8c3e to c5b0464 Compare July 11, 2024 08:46
Copy link

github-actions bot commented Jul 11, 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-07-11 09:46:58.520317168 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 310e0178b7ef792f6bc63e283c05a96aced7f1c261a95f42dac0f63f 9374
μHead 21b2be9c2d22f14da9218071a5a3b4c8ce12cf7f483b11c21b3923b8* 4237
  • 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 4818 5.78 2.27 0.43
2 5019 7.23 2.84 0.45
3 5220 8.80 3.46 0.48
5 5623 11.58 4.56 0.52
10 6626 18.61 7.33 0.65
58 16276 86.09 33.95 1.81

Cost of Commit Transaction

This is using ada-only outputs for better comparability.

UTxO Tx size % max Mem % max CPU Min fee ₳
1 559 9.69 3.82 0.28
2 749 12.48 5.10 0.32
3 932 15.33 6.40 0.36
5 1310 21.26 9.09 0.45
10 2240 37.35 16.27 0.67
25 5055 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.55 5.82 0.33
2 113 654 23.45 9.46 0.44
3 170 764 33.17 13.53 0.55
4 226 874 45.03 18.50 0.69
5 283 984 57.35 23.76 0.83
6 337 1095 72.55 30.16 1.00
7 394 1205 90.77 37.76 1.21

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 602 8.31 4.60 0.28
2 783 9.37 5.98 0.30
3 616 8.47 3.99 0.27
5 1216 11.80 9.45 0.37
10 2009 16.14 15.40 0.48
50 7747 47.52 60.91 1.31

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 627 8.56 4.69 0.28
2 826 9.78 6.16 0.31
3 888 9.97 6.82 0.32
5 1211 11.91 9.34 0.37
10 1974 16.28 15.39 0.48
50 7808 49.39 61.89 1.34

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 4693 16.91 7.32 0.55
2 4875 28.89 12.67 0.69
3 4989 41.98 18.45 0.84
4 5222 60.42 26.70 1.06
5 5266 77.32 34.08 1.25
6 5367 98.62 43.42 1.50

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 7.82 3.27 0.44
5 1 57 4685 8.97 3.98 0.46
5 5 286 4823 13.79 6.92 0.52
5 10 569 4991 19.13 10.30 0.60
5 20 1138 5329 31.29 17.70 0.77
5 30 1705 5669 41.98 24.48 0.92
5 40 2275 6009 53.72 31.71 1.08
5 50 2843 6346 65.68 39.03 1.24
5 79 4496 7332 98.76 59.59 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-07-11 09:50:25.13304493 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.512544620
P99 9.310249469999995ms
P95 5.891890199999999ms
P50 4.274983499999999ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 21.857407151
P99 114.54340093000003ms
P95 30.435025349999997ms
P50 19.370708ms
Number of Invalid txs 0

Copy link

github-actions bot commented Jul 11, 2024

Test Results

437 tests  ±0   425 ✅ ±0   15m 40s ⏱️ +50s
143 suites ±0    12 💤 ±0 
  5 files   ±0     0 ❌ ±0 

Results for commit d133d9c. ± Comparison against base commit 3e7bd6b.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact force-pushed the lc/cardano-api-8.47 branch 3 times, most recently from d133d9c to 8658e13 Compare July 11, 2024 10:13
(UTxO.toApi utxo)
body
(fmap . fmap . fmap) snd $
evaluateTransactionExecutionUnits
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm surprised this needed changing and the other calls to evaluateTransactionExecutionUnits not?

(fmap . fmap . fmap) snd $ could be anything and this is hard to read (judging from a github diff I'm looking at now). What is happening here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This signature changed and we discard the new information. https://github.com/IntersectMBO/cardano-api/pull/555/files

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh cool, having logs sounds useful 😊

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.

None yet

2 participants