andrehrferreira / bench-sockets-csharp

C# implementation for Websocket, TCP and UDP performance testing
0 stars 0 forks source link
csharp tcp udp websocket

Benchmark Websocket, TCP and UDP in C#

Build Websocket Server

$ cd server-ws
$ dotnet publish -c Release -o ./publish

Run

$ dotnet run

Docker

$ cd server-ws
$ docker build -t server-ws .
$ docker run -p 3001:3001 server-ws

Build TCP/IP Server

$ cd server-tcp
$ dotnet publish -c Release -o ./publish

Run

$ dotnet run

Docker

$ cd server-tcp
$ docker build -t server-tcp .
$ docker run -p 4001:4001 server-tcp

Build UDP Server

$ cd server-udp
$ dotnet publish -c Release -o ./publish

Run

$ dotnet run

Docker

$ cd server-udp
$ docker build -t server-udp .
$ docker run -p 5001:5001 server-udp

Build Client

Run Node

$ npm install
$ node client.js

Run Go

$ go get github.com/gorilla/websocket
$ go run client.go