如果对结果感兴趣,请阅读完整报告或关于此实验的简版博客文章。
这是C# (Fleck)版本的WebSocket服务器,旨在基准测试各种WebSocket实现的可靠性和速度性能。
其他服务器版本可在以下链接中找到。
基准测试客户端
基准测试客户端可在https://github.com/matttomasetti/NodeJS_Websocket-Benchmark-Client%E6%89%BE%E5%88%B0%E3%80%82
快速设置
docker run -p 8080:8080 mtomasetti/cs-fleck_websocket-benchmark-server
就是这样!WebSocket服务器将自动在8080端口启动。
Dockerfile设置
docker build . -t websocket_benchmark/cs
docker run -p 8080:8080 websocket_benchmark/cs
手动设置
要求
要编译和运行此WebSocket服务器,需要:
建议通过包含的Dockerfile使用现成环境。
安装与运行
dotnet build
dotnet run --project cs_fleck_websocket_benchmark_server --framework netcoreapp5.0
链接
GitHub
- https://github.com/matttomasetti/NodeJS_Websocket-Benchmark-Client
- https://github.com/matttomasetti/C-LWS_Websocket-Benchmark-Server
- https://github.com/matttomasetti/CPP-uWS_Websocket-Benchmark-Server
- https://github.com/matttomasetti/CS-Fleck_Websocket-Benchmark-Server
- https://github.com/matttomasetti/Go-Gorilla_Websocket-Benchmark-Server
- https://github.com/matttomasetti/Java-WebSocket_Websocket-Benchmark-Server
- https://github.com/matttomasetti/NodeJS-uWS_Websocket-Benchmark-Server
- https://github.com/matttomasetti/PHP-Ratchet_Websocket-Benchmark-Server
- https://github.com/matttomasetti/Python-Websockets_Websocket-Benchmark-Server
- https://github.com/matttomasetti/Python-Autobahn_Websocket-Benchmark-Server
- https://github.com/matttomasetti/Python-Aiohttp_Websocket-Benchmark-Server
- https://github.com/matttomasetti/Rust-WebSocket_Websocket-Benchmark-Server
Docker Hub
- https://hub.docker.com/r/mtomasetti/nodejs_websocket-benchmark-client
- https://hub.docker.com/r/mtomasetti/c-lws_websocket-benchmark-server
- https://hub.docker.com/r/mtomasetti/cpp-uws_websocket-benchmark-server
- https://hub.docker.com/repository/docker/mtomasetti/cs-fleck_websocket-benchmark-server
- https://hub.docker.com/r/mtomasetti/go-gorilla_websocket-benchmark-server
- https://hub.docker.com/r/mtomasetti/java-websocket_websocket-benchmark-server
- https://hub.docker.com/r/mtomasetti/nodejs-uws_websocket-benchmark-server
- https://hub.docker.com/r/mtomasetti/php-ratchet_websocket-benchmark-server
- https://hub.docker.com/r/mtomasetti/python-websockets_websocket-benchmark-server
- https://hub.docker.com/repository/docker/mtomasetti/python-autobahn_websocket-benchmark-server
- https://hub.docker.com/repository/docker/mtomasetti/python-aiohttp_websocket-benchmark-server
- https://hub.docker.com/r/mtomasetti/rust-websocket_websocket-benchmark-server