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.11] Add benchmark for routing sub_applications #9937

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 #9937 will not alter performance

Comparing patchback/backports/3.11/0c312496c6490f934cec360f21ae802e2c8d8679/pr-9935 (9ec920e) with 3.11 (07bf925)

Summary

✅ 36 untouched benchmarks

🆕 1 new benchmarks

Benchmarks breakdown

Benchmark 3.11 patchback/backports/3.11/0c312496c6490f934cec360f21ae802e2c8d8679/pr-9935 Change
🆕 test_resolve_prefix_resources_many_prefix_many_plain[pyloop] N/A 5.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 98.01%. Comparing base (07bf925) to head (9ec920e).
Report is 1 commits behind head on 3.11.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             3.11    #9937      +/-   ##
==========================================
- Coverage   98.01%   98.01%   -0.01%     
==========================================
  Files         121      121              
  Lines       36659    36677      +18     
  Branches     4409     4414       +5     
==========================================
+ Hits        35931    35948      +17     
  Misses        545      545              
- Partials      183      184       +1     
Flag Coverage Δ
CI-GHA 97.90% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.60% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.48% <100.00%> (+<0.01%) ⬆️
OS-macOS 96.71% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 96.56% <100.00%> (-0.01%) ⬇️
Py-3.10.15 97.11% <100.00%> (+<0.01%) ⬆️
Py-3.11.10 97.22% <100.00%> (+0.04%) ⬆️
Py-3.11.9 96.64% <100.00%> (+<0.01%) ⬆️
Py-3.12.7 97.67% <100.00%> (+<0.01%) ⬆️
Py-3.13.0 97.66% <100.00%> (-0.01%) ⬇️
Py-3.9.13 96.49% <100.00%> (+<0.01%) ⬆️
Py-3.9.20 97.04% <100.00%> (-0.03%) ⬇️
Py-pypy7.3.16 96.64% <100.00%> (+<0.01%) ⬆️
VM-macos 96.71% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 97.60% <100.00%> (+<0.01%) ⬆️
VM-windows 94.48% <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 enabled auto-merge (squash) November 17, 2024 08:03
@asvetlov asvetlov merged commit 9c81667 into 3.11 Nov 17, 2024
35 of 36 checks passed
@asvetlov asvetlov deleted the patchback/backports/3.11/0c312496c6490f934cec360f21ae802e2c8d8679/pr-9935 branch November 17, 2024 08:05
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