-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 a benchmark for web.FileResponse #10095
Conversation
CodSpeed Performance ReportMerging #10095 will not alter performanceComparing Summary
Benchmarks breakdown
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #10095 +/- ##
=======================================
Coverage 98.76% 98.76%
=======================================
Files 121 122 +1
Lines 36866 36904 +38
Branches 4396 4400 +4
=======================================
+ Hits 36409 36447 +38
Misses 311 311
Partials 146 146
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Probably need one for no sendfile to simulate over tls |
On a side note, all the Python versions we support now implement sendfile fallback so its likely our sendfile fallback code is no longer needed. |
Backport to 3.11: 💚 backport PR created✅ Backport PR branch: Backported as #10097 🤖 @patchback |
Backport to 3.12: 💚 backport PR created✅ Backport PR branch: Backported as #10098 🤖 @patchback |
…nse (#10098) **This is a backport of PR #10095 as merged into master (fcce1bf).** We didn't have any benchmarks for file responses. From the benchmarks it turns out most of the time is creating and processing the executor jobs. If we combine the stat into a job that returns the open fileobj it will likely be faster and solve #8013 Co-authored-by: J. Nick Koston <nick@koston.org>
…nse (#10097) **This is a backport of PR #10095 as merged into master (fcce1bf).** We didn't have any benchmarks for file responses. From the benchmarks it turns out most of the time is creating and processing the executor jobs. If we combine the stat into a job that returns the open fileobj it will likely be faster and solve #8013 Co-authored-by: J. Nick Koston <nick@koston.org>
We didn't have any benchmarks for file responses. From the benchmarks it turns out most of the time is creating and processing the executor jobs.
If we combine the stat into a job that returns the open fileobj it will likely be faster and solve #8013