kopia lustrzana https://github.com/cirospaciari/socketify.py
added robyn bench
rodzic
15f88ca3dd
commit
49cf47c227
|
@ -50,7 +50,7 @@ HTTP requests per second (Linux x64)
|
|||
![image](https://raw.githubusercontent.com/cirospaciari/socketify.py/main/misc/bench-bar-graph.svg)
|
||||
|
||||
Runtime versions: PyPy3 7.3.9 and Python 3.10.7<br/>
|
||||
Framework versions: gunicorn 20.1.0 + uvicorn 0.19.0, socketify alpha, gunicorn 20.1.0 + falcon 3.1.0<br/>
|
||||
Framework versions: gunicorn 20.1.0 + uvicorn 0.19.0, socketify alpha, gunicorn 20.1.0 + falcon 3.1.0, robyn 0.18.3<br/>
|
||||
Tested with oha -c 40 -z 5s http://localhost:8000/ (1 run for warmup and 3 runs average for testing)<br/>
|
||||
Source code in [bench](https://github.com/cirospaciari/socketify.py/tree/main/bench)<br/>
|
||||
Machine OS: Debian GNU/Linux bookworm/sid x86_64 Kernel: 6.0.0-2-amd64 CPU: Intel i7-7700HQ (8) @ 3.800GHz Memory: 32066MiB
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
from robyn import Robyn
|
||||
|
||||
app = Robyn(__file__)
|
||||
|
||||
@app.get("/")
|
||||
async def h(request):
|
||||
return "Hello, world!"
|
||||
|
||||
app.start(port=8000)
|
||||
|
||||
# python3 ./robyn_plaintext.py --processes 4 --log-level CRITICAL
|
||||
# pypy3 did not compile
|
|
@ -14,4 +14,4 @@ async def app(scope, receive, send):
|
|||
})
|
||||
|
||||
#python3 -m gunicorn uvicorn_guvicorn_plaintext:app -w 1 -k uvicorn.workers.UvicornWorker
|
||||
#pypy3 -m gunicorn uvicorn_guvicorn_plaintext:app -w 1 -k uvicorn.workers.UvicornWorker
|
||||
#pypy3 -m gunicorn uvicorn_guvicorn_plaintext:app -w 1 -k uvicorn.workers.UvicornWorker
|
||||
|
|
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 40 KiB Po Szerokość: | Wysokość: | Rozmiar: 41 KiB |
File diff suppressed because one or more lines are too long
Przed Szerokość: | Wysokość: | Rozmiar: 7.8 KiB Po Szerokość: | Wysokość: | Rozmiar: 8.0 KiB |
Ładowanie…
Reference in New Issue