https://github.com/bschwind/udp-stress-test
A UDP client/server stress test based on Tokio, mostly for learning
https://github.com/bschwind/udp-stress-test
Last synced: about 1 year ago
JSON representation
A UDP client/server stress test based on Tokio, mostly for learning
- Host: GitHub
- URL: https://github.com/bschwind/udp-stress-test
- Owner: bschwind
- Created: 2017-05-12T02:53:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-13T19:03:20.000Z (about 9 years ago)
- Last Synced: 2025-03-20T17:51:47.199Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# udp-stress-test
A UDP client/server stress test based on Tokio
## Build
`$ cargo build --release`
## Run Server
`$ cargo run --release -- s`
## Run Clients
`$ cargo run --release`
## Run Clients with random start time
`$ cargo run --release -r `
## Usage
```
UDP benchmark 1.0
Tests UDP throughput with Tokio UDPSockets
USAGE:
udp-fun [FLAGS] [OPTIONS]
FLAGS:
-s, --as-server If set, runs the UDP server instead of the clients
--help Prints help information
-r, --randomize If set, randomizes the start times of the clients
-V, --version Prints version information
OPTIONS:
-b, --bind Adddress to bind the server to (default 0.0.0.0)
-t, --tickrate Frequency in Hz for clients to send packets (default 10)
-d, --duration Number of seconds to run the clients (default 5)
-h, --host Host IP for clients to connect to (default 127.0.0.1)
-n, --num Number of clients to serve or create (default 128)
-p, --port Port the server runs on (and the client connects to (default 55777)
```