FrameworkBenchmarks
FrameworkBenchmarks copied to clipboard
Feat/litestar
feat: Add Litestar Framework Implementation
This PR introduces comprehensive benchmarks for the Litestar framework across multiple configurations and server implementations.
Key Changes
- 🚀 Added Litestar benchmark implementations for:
- ASGI Servers: Uvicorn, Granian, Socketify
- Protocols: HTTP/1.1, WebSockets
- Templating: Jinja2 integration
- ORJSON optimizations for JSON serialization
Removed:
- Removed
ujson5and madeorjsonas default since it's mentioned inujsondocs itself to migrate. - Removed separate configurations for
orjson - Removed support for
hypercornsince it's been unmaintained
New Server
- Added support for Granian server
Given using uvicorn workers with gunicorn is deprecated, might be a good idea not to implement such variants for new implementations..
Sure will keep do this during the implementation
@joanhey @gi0baro need some help here actions are failing fixed the parts can you help me where exactly should I fix and how can I run the test in my local?
@joanhey @gi0baro need some help here actions are failing fixed the parts can you help me where exactly should I fix and how can I run the test in my local?
For the Granian part, it looks like you're copying the wrong requirements file in the docker image:
litestar-granian: Exception: COPY failed: file not found in build context or excluded by .dockerignore: stat requirements-hypercorn.txt: file does not exist
https://github.com/TechEmpower/FrameworkBenchmarks/pull/9905/files#diff-7c69ad07ef0ff402b043234c1bf57f528611dd38a5c99c5778255b355ee6736bR10
Also, I'm pretty sure you can't use HTTP/2 only.
@gi0baro all the other issues are fixed now the major issue is socketify web not able to figure out what the issue is.
@gi0baro all the other issues are fixed now the major issue is socketify web not able to figure out what the issue is.
You might want to ping @cirospaciari on that.
Sure @cirospaciari can you please help me out here?
Sure @cirospaciari can you please help me out here?
Sure whats the problem you are encountering? wanna DM me in discord?
Sure will text you on discord and also socketify discord link is not working as well
Sure will text you on discord and also socketify discord link is not working as well
https://discord.gg/uVckUZCx Will update the oficial link thanks
Thanks have texted you on Discord.
Hi @pythonhubdev
To test in local:
./tfb --mode verify --test litestart
./tfb --mode verify --test litestart-granian
./tfb --mode verify --test litestart litestar-granian litestar-gunicorn
# for help
./tfb -h
Will try this out. @cirospaciari any update on the socketifyweb part?
@cirospaciari any update on this PR?
Hi @joanhey issues are fixed can you please review it and let me know if any more changes are required? I have removed the socketifyweb-pypy since it was having some issues.