Skip to content

Benchmark for testing the reliable UDP networking libraries

License

Notifications You must be signed in to change notification settings

bmjoy/BenchmarkNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

BenchmarkNet GitHub release Bountysource

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

Supported networking libraries:

Features:

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

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

You can find the latest benchmark results in the thread on Unity forums.

If you have any questions, contact me via email.

About

Benchmark for testing the reliable UDP networking libraries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages