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

[PR #9935/0c312496 backport][3.10] Add benchmark for routing sub_applications #9936

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Nov 17, 2024

This is a backport of PR #9935 as merged into master (0c31249).

Router should be optimized for handling 2 kind of prefix resources (sub_apps and static files are handled equally now):

  1. sub_apps are placed under non-overlapped top-level single-segment prefixed. test_resolve_gitapi_subapps benchmark test this case already.
  2. sub_apps shares the same prefix segments, e.g. /api/manager/plugin/{name}.

This PR covers the second case.

Router should be optimized for handling 2 kind of prefix resources
(sub_apps and static files are handled equally now):
1. sub_apps are placed under non-overlapped top-level single-segment
prefixed. `test_resolve_gitapi_subapps` benchmark test this case
already.
2. sub_apps shares the same prefix segments, e.g.
`/api/manager/plugin/{name}`.

This PR covers the second case.

(cherry picked from commit 0c31249)
Copy link

codspeed-hq bot commented Nov 17, 2024

CodSpeed Performance Report

Merging #9936 will not alter performance

Comparing patchback/backports/3.10/0c312496c6490f934cec360f21ae802e2c8d8679/pr-9935 (0efc230) with 3.10 (58a78f6)

Summary

✅ 36 untouched benchmarks

🆕 1 new benchmarks

Benchmarks breakdown

Benchmark 3.10 patchback/backports/3.10/0c312496c6490f934cec360f21ae802e2c8d8679/pr-9935 Change
🆕 test_resolve_prefix_resources_many_prefix_many_plain[pyloop] N/A 6.1 ms N/A

Copy link

codecov bot commented Nov 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.93%. Comparing base (58a78f6) to head (0efc230).
Report is 12 commits behind head on 3.10.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.10    #9936   +/-   ##
=======================================
  Coverage   97.93%   97.93%           
=======================================
  Files         115      115           
  Lines       36095    36113   +18     
  Branches     4366     4371    +5     
=======================================
+ Hits        35350    35368   +18     
  Misses        553      553           
  Partials      192      192           
Flag Coverage Δ
CI-GHA 97.83% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.53% <100.00%> (+<0.01%) ⬆️
OS-Windows 95.15% <100.00%> (+<0.01%) ⬆️
OS-macOS 97.23% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 97.08% <100.00%> (-0.01%) ⬇️
Py-3.10.15 97.08% <100.00%> (+<0.01%) ⬆️
Py-3.11.10 97.10% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 97.17% <100.00%> (+<0.01%) ⬆️
Py-3.12.7 97.59% <100.00%> (-0.01%) ⬇️
Py-3.13.0 97.59% <100.00%> (+<0.01%) ⬆️
Py-3.8.10 94.55% <100.00%> (+<0.01%) ⬆️
Py-3.8.18 96.87% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 97.00% <100.00%> (+<0.01%) ⬆️
Py-3.9.20 96.99% <100.00%> (+0.04%) ⬆️
Py-pypy7.3.16 96.54% <100.00%> (+<0.01%) ⬆️
VM-macos 97.23% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.53% <100.00%> (+<0.01%) ⬆️
VM-windows 95.15% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@asvetlov asvetlov merged commit fcd8d8c into 3.10 Nov 17, 2024
39 of 40 checks passed
@asvetlov asvetlov deleted the patchback/backports/3.10/0c312496c6490f934cec360f21ae802e2c8d8679/pr-9935 branch November 17, 2024 08:04
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.

1 participant