Comments (6)
wont fix for now
from aiohttp.
Hi @fafhrd91,
I'm looking for why aiohttp.web+API-Hour is slow compare to others Web frameworks for the plaintext test in FrameworkBenchmarks: https://www.techempower.com/benchmarks/#section=data-r10&hw=peak&test=plaintext&l=1kw
In fact, in this test, they use HTTP pipelining as described in this issue.
Personally, I don't use this feature on production.
For only one benchmark test, it isn't critical to improve that, it's only for your information.
Moreover, I already have an alternative solution to improve that for round 11.
Regards.
from aiohttp.
to implement pipelining we would need to introduce write buffer, and that would reduce normal performance. i'm not very interested in plain text performance improvements, my last optimization that gives 50-70% increase of raw performance only gives about 2-3% performance increase in real production systems.
from aiohttp.
my last optimization that gives 50-70% increase of raw performance only gives about 2-3% performance increase in real production systems.
@fafhrd91: Interesting, I've better numbers based on benchmark suite. I'll check statistics on our HAproxy frontends to confirm or invalidate your observations when we'll upgrade our daemons. Nevertheless, maybe you have more CPU-bound tasks than me in your endpoints. Or maybe you have a bigger bottleneck than aiohttp itself.
from aiohttp.
to implement pipelining we would need to introduce write buffer, and that would reduce normal performance
Not if the write buffer is only used when needed (if there are any previous pending requests of the same connection). Pipelining could also be enabled/disabled with some protocol level settings. Finally, there could be some configurable "strategies" (when to allow and forbid pipelining).
from aiohttp.
This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.
If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.
from aiohttp.
Related Issues (20)
- Cannot build wheels for aiohttp HOT 1
- Form-encoded data with None as the value gets passed as string "None" HOT 5
- CVE-2023-49081/2 fix question HOT 12
- Wrong constructor called HOT 3
- Make a protocol ValueError subclass ClientError HOT 2
- Serve static Brotli compressed files
- HTTPS requests received on HTTP port show generic BadStatusLine exception HOT 1
- aiohttp may respond to requests sent after the client asks for the connection to be closed
- ValueError: verify_ssl, ssl_context, fingerprint and ssl parameters are mutually exclusive HOT 2
- Accept-Encoding header parsing and interpretation HOT 15
- Varying node versions & not using NPM clean install
- aiodns can probably be enabled on windows, now that it ships with c-ares already built HOT 3
- Failure introduced from 3.8.5 --> 3.8.6; Passing on 3.9+ HOT 4
- Detailed TimeoutError message not captured when handling asyncio.TimeoutError in aiohttp HOT 8
- after upgrading from 3.8.6 to 3.9.* can't use middlewares anymore HOT 3
- Abrupt client websocket connection loss results in `close_code = OK` HOT 2
- Python package aiohttp>=3.9.2 break azure-keyvault-certificates package's get_certificate functionality HOT 5
- ClientWebSocketResponse.closed is False but WebSocketWriter.transport.is_closing() is True
- CancelledError suppressed where it should not HOT 4
- Technical CancelledError bubbling up where it should not HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiohttp.