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 url dispatcher benchmark for resolving root route when exists many plain routes in the subtree #9954

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

asvetlov
Copy link
Member

Yet another benchmark.
There is a tree:

/
/api
/api/server
/api/server/dispatch
/api/server/dispatch/123 
/api/server/dispatch/123/update

The benchmark resolves the root route /. If the search starts from checking deep-most resource it cold be suboptimal.

@asvetlov asvetlov added bot:chronographer:skip This PR does not need to include a change note backport-3.10 backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot backport-3.12 Trigger automatic backporting to the 3.12 release branch by Patchback robot labels Nov 18, 2024
Copy link

codspeed-hq bot commented Nov 18, 2024

CodSpeed Performance Report

Merging #9954 will not alter performance

Comparing dispatcher-benchmark (c5743e9) with master (509fddf)

Summary

✅ 42 untouched benchmarks

🆕 1 new benchmarks

Benchmarks breakdown

Benchmark master dispatcher-benchmark Change
🆕 test_resolve_root_route_with_many_fixed_routes[pyloop] N/A 929.8 µs N/A

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.72%. Comparing base (509fddf) to head (c5743e9).
Report is 2 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9954   +/-   ##
=======================================
  Coverage   98.72%   98.72%           
=======================================
  Files         121      121           
  Lines       36682    36707   +25     
  Branches     4378     4381    +3     
=======================================
+ Hits        36214    36239   +25     
  Misses        315      315           
  Partials      153      153           
Flag Coverage Δ
CI-GHA 98.61% <100.00%> (+<0.01%) ⬆️
OS-Linux 98.30% <100.00%> (+<0.01%) ⬆️
OS-Windows 96.13% <100.00%> (+<0.01%) ⬆️
OS-macOS 97.39% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 97.24% <100.00%> (+<0.01%) ⬆️
Py-3.10.15 97.79% <100.00%> (-0.06%) ⬇️
Py-3.11.10 97.84% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 97.30% <100.00%> (+<0.01%) ⬆️
Py-3.12.7 98.36% <100.00%> (-0.01%) ⬇️
Py-3.13.0 98.36% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 97.16% <100.00%> (-0.01%) ⬇️
Py-3.9.20 97.71% <100.00%> (-0.05%) ⬇️
Py-pypy7.3.16 97.32% <100.00%> (-0.01%) ⬇️
VM-macos 97.39% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 98.30% <100.00%> (+<0.01%) ⬆️
VM-windows 96.13% <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 18, 2024 17:06
@asvetlov asvetlov disabled auto-merge November 18, 2024 17:16
@asvetlov asvetlov enabled auto-merge (squash) November 18, 2024 17:17
@asvetlov asvetlov merged commit be31bed into master Nov 18, 2024
41 of 43 checks passed
@asvetlov asvetlov deleted the dispatcher-benchmark branch November 18, 2024 17:21
Copy link
Contributor

patchback bot commented Nov 18, 2024

Backport to 3.10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.10/be31bed20210b6d7380aed8702a17994ea6a2d59/pr-9954

Backported as #9958

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 18, 2024
…y plain routes in the subtree (#9954)

Yet another benchmark.
There is a tree:
```
/
/api
/api/server
/api/server/dispatch
/api/server/dispatch/123
/api/server/dispatch/123/update
```
The benchmark resolves the root route `/`. If the search starts from
checking deep-most resource it cold be suboptimal.

(cherry picked from commit be31bed)
Copy link
Contributor

patchback bot commented Nov 18, 2024

Backport to 3.11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.11/be31bed20210b6d7380aed8702a17994ea6a2d59/pr-9954

Backported as #9959

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 18, 2024
…y plain routes in the subtree (#9954)

Yet another benchmark.
There is a tree:
```
/
/api
/api/server
/api/server/dispatch
/api/server/dispatch/123
/api/server/dispatch/123/update
```
The benchmark resolves the root route `/`. If the search starts from
checking deep-most resource it cold be suboptimal.

(cherry picked from commit be31bed)
Copy link
Contributor

patchback bot commented Nov 18, 2024

Backport to 3.12: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.12/be31bed20210b6d7380aed8702a17994ea6a2d59/pr-9954

Backported as #9960

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 18, 2024
…y plain routes in the subtree (#9954)

Yet another benchmark.
There is a tree:
```
/
/api
/api/server
/api/server/dispatch
/api/server/dispatch/123
/api/server/dispatch/123/update
```
The benchmark resolves the root route `/`. If the search starts from
checking deep-most resource it cold be suboptimal.

(cherry picked from commit be31bed)
asvetlov added a commit that referenced this pull request Nov 18, 2024
…esolving root route when exists many plain routes in the subtree (#9958)

**This is a backport of PR #9954 as merged into master
(be31bed).**

Yet another benchmark.
There is a tree:
```
/
/api
/api/server
/api/server/dispatch
/api/server/dispatch/123 
/api/server/dispatch/123/update
```
The benchmark resolves the root route `/`. If the search starts from
checking deep-most resource it cold be suboptimal.

Co-authored-by: Andrew Svetlov <[email protected]>
asvetlov added a commit that referenced this pull request Nov 18, 2024
…esolving root route when exists many plain routes in the subtree (#9959)

**This is a backport of PR #9954 as merged into master
(be31bed).**

Yet another benchmark.
There is a tree:
```
/
/api
/api/server
/api/server/dispatch
/api/server/dispatch/123 
/api/server/dispatch/123/update
```
The benchmark resolves the root route `/`. If the search starts from
checking deep-most resource it cold be suboptimal.

Co-authored-by: Andrew Svetlov <[email protected]>
asvetlov added a commit that referenced this pull request Nov 18, 2024
…esolving root route when exists many plain routes in the subtree (#9960)

**This is a backport of PR #9954 as merged into master
(be31bed).**

Yet another benchmark.
There is a tree:
```
/
/api
/api/server
/api/server/dispatch
/api/server/dispatch/123 
/api/server/dispatch/123/update
```
The benchmark resolves the root route `/`. If the search starts from
checking deep-most resource it cold be suboptimal.

Co-authored-by: Andrew Svetlov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot backport-3.12 Trigger automatic backporting to the 3.12 release branch by Patchback robot bot:chronographer:skip This PR does not need to include a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants