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 #10095/fcce1bf6 backport][3.12] Add a benchmark for web.FileResponse #10098

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Dec 3, 2024

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

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

(cherry picked from commit fcce1bf)
Copy link

codspeed-hq bot commented Dec 3, 2024

CodSpeed Performance Report

Merging #10098 will not alter performance

Comparing patchback/backports/3.12/fcce1bf6a5c339a3d63ab1678dcb6658ffc7d570/pr-10095 (b1ee50d) with 3.12 (d872e34)

Summary

✅ 44 untouched benchmarks
🆕 2 new benchmarks

Benchmarks breakdown

Benchmark 3.12 patchback/backports/3.12/fcce1bf6a5c339a3d63ab1678dcb6658ffc7d570/pr-10095 Change
🆕 test_simple_web_file_response[pyloop] N/A 95.5 ms N/A
🆕 test_simple_web_file_sendfile_fallback_response[pyloop] N/A 101.2 ms N/A

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.06%. Comparing base (d872e34) to head (b1ee50d).
Report is 1 commits behind head on 3.12.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             3.12   #10098   +/-   ##
=======================================
  Coverage   98.06%   98.06%           
=======================================
  Files         122      123    +1     
  Lines       37051    37089   +38     
  Branches     4453     4457    +4     
=======================================
+ Hits        36334    36372   +38     
  Misses        540      540           
  Partials      177      177           
Flag Coverage Δ
CI-GHA 97.95% <100.00%> (+<0.01%) ⬆️
OS-Linux 97.66% <100.00%> (+<0.01%) ⬆️
OS-Windows 94.58% <100.00%> (+<0.01%) ⬆️
OS-macOS 96.78% <100.00%> (-0.01%) ⬇️
Py-3.10.11 96.63% <100.00%> (+<0.01%) ⬆️
Py-3.10.15 97.21% <100.00%> (+0.04%) ⬆️
Py-3.11.10 97.24% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 96.71% <100.00%> (-0.01%) ⬇️
Py-3.12.7 97.73% <100.00%> (-0.01%) ⬇️
Py-3.13.0 97.71% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 96.57% <100.00%> (+<0.01%) ⬆️
Py-3.9.20 97.14% <100.00%> (+0.01%) ⬆️
Py-pypy7.3.16 96.71% <100.00%> (+<0.01%) ⬆️
VM-macos 96.78% <100.00%> (-0.01%) ⬇️
VM-ubuntu 97.66% <100.00%> (+<0.01%) ⬆️
VM-windows 94.58% <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.

@bdraco bdraco merged commit 094ffb6 into 3.12 Dec 4, 2024
36 checks passed
@bdraco bdraco deleted the patchback/backports/3.12/fcce1bf6a5c339a3d63ab1678dcb6658ffc7d570/pr-10095 branch December 4, 2024 02:14
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