Vytek / BenchmarkNet

Benchmark for testing the reliable UDP networking solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alt logo

GitHub release Bountysource

BenchmarkNet is a console application for testing the reliable UDP networking solutions.

Features:

  • Asynchronous simulation of a large number of clients
  • Stable under high loads
  • Simple and flexible simulation setup
  • Detailed session information

Supported networking solutions:

You can find the latest benchmark results on the wiki page.

How it works?

Each simulated client is one asynchronous task for establishing a connection with the server and processing the network events. Each task has one subtask which also works asynchronously to send network messages at a specified interval (15 messages per second by default). So, 1000 simulated clients is 1000 tasks with 1000 subtasks which works independently of each other. This sounds scary, but CPU usage is <1% for tasks itself and every operation is completely thread-safe. The clients send network messages to the server (500 reliable and 1000 unreliable by default). The server also sends messages to the clients in response (48 bytes per message by default). The application will monitor how the data is processed by the server and clients, and report their status in real-time.

Usage

Run the application and enter the desired parameters to override the default values. Do not perform any actions while the benchmark is running and wait until the process is complete.

You can use packet sniffer to monitor how the data is transmitted, but it may affect the results.

If you want to simulate a bad network condition, use Clumsy as an ideal companion.

Discussion

Feel free to join the discussion in the thread on Unity forums.

If you have any questions, contact me via email.

Donations

This project has already had an impact and helped developers in an improvement of their networking libraries. If you like this project, you can support me on Bountysource or Yandex.

Any support is much appreciated.

About

Benchmark for testing the reliable UDP networking solutions

License:MIT License


Languages

Language:C# 100.0%