Simple Python websocket benchmark server using uvicorn and websockets-library.
docker run -p 8080:8080 villekr/python-asgi-websocket-benchmark
- HOST - Bind socket to this host
- Default: "127.0.0.1"
- Type: string
- PORT - Bind socket to this port
- Default: 8080
- Type: int
- LOG_LEVEL - Uvicorn logging level
- Default: "error"
- Type: string [ critical | error | warning | info | debug | trace ]
- LOOP - Python event loop
- Default: "auto"
- Type: string [ auto | uvloop | asyncio ]
- WS - Websocket server
- Default: "auto"
- Type: string [ auto | none | websockets | wsproto ]
- WORKERS - Number of worker processes
- Default: 1
- Type: integer