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

Add CORS headers to API.Server #1434

Merged
merged 1 commit into from
May 14, 2024
Merged

Add CORS headers to API.Server #1434

merged 1 commit into from
May 14, 2024

Conversation

ch1bo
Copy link
Collaborator

@ch1bo ch1bo commented May 14, 2024


  • 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 a team May 14, 2024 09:35
Copy link

github-actions bot commented May 14, 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-05-14 14:19:46.09667031 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 9.10 3.49 0.46
2 4996 10.61 4.05 0.49
3 5194 12.55 4.80 0.51
5 5597 16.43 6.29 0.57
10 6609 26.46 10.15 0.73
48 14244 99.81 38.30 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 559 10.24 4.04 0.29
2 748 13.88 5.64 0.34
3 931 17.66 7.29 0.39
5 1307 25.66 10.74 0.49
10 2249 48.19 20.30 0.78
19 3922 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.52 6.53 0.35
2 113 654 27.48 10.93 0.48
3 170 764 38.40 15.44 0.61
4 227 874 53.26 21.50 0.77
5 281 984 67.26 27.37 0.93
6 341 1095 86.14 35.12 1.15

Cost of Close Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 583 8.34 4.61 0.28
2 802 9.36 5.98 0.30
3 867 9.75 6.73 0.32
5 1198 11.52 9.19 0.36
10 1892 15.53 14.86 0.47
50 8107 49.91 62.95 1.36

Cost of Contest Transaction

Parties Tx size % max Mem % max CPU Min fee ₳
1 622 8.65 4.73 0.28
2 755 9.34 5.79 0.30
3 897 10.11 6.88 0.32
5 1244 12.47 9.71 0.38
10 2023 16.42 15.49 0.48
50 8154 51.59 63.63 1.38

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 4665 17.09 7.39 0.55
2 4858 28.81 12.63 0.69
3 5000 43.25 19.06 0.86
4 5033 56.40 24.73 1.01
5 5163 71.70 31.39 1.18
6 5381 98.21 43.27 1.49

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 4661 9.00 3.99 0.46
5 5 284 4796 14.03 7.02 0.53
5 10 570 4967 19.37 10.40 0.60
5 20 1137 5304 30.90 17.53 0.76
5 30 1707 5647 42.43 24.67 0.92
5 40 2277 5987 53.75 31.72 1.08
5 50 2846 6325 65.71 39.04 1.24
5 79 4497 7310 99.21 59.77 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-05-14 14:22:11.022233109 UTC

Baseline Scenario

Number of nodes 1
Number of txs 3000
Avg. Confirmation Time (ms) 4.021149908
P99 6.884707049999968ms
P95 4.9195473ms
P50 3.856726ms
Number of Invalid txs 0

Three local nodes

Number of nodes 3
Number of txs 9000
Avg. Confirmation Time (ms) 21.501758219
P99 53.31881247000005ms
P95 29.73956295ms
P50 19.4706395ms
Number of Invalid txs 0

Copy link

github-actions bot commented May 14, 2024

Test Results

427 tests  ±0   419 ✅ ±0   15m 12s ⏱️ -54s
139 suites ±0     8 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit 6f47a3c. ± Comparison against base commit 6427e5c.

♻️ This comment has been updated with latest results.

@locallycompact locallycompact merged commit cf535c7 into master May 14, 2024
20 checks passed
@locallycompact locallycompact deleted the cors-headers branch May 14, 2024 20:06
@ch1bo ch1bo added this to the 0.17.0 milestone Jun 10, 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