Skip to content

PingPong is a small TCP/UDP latency testing tool similar to netperf written in Rust.

License

Notifications You must be signed in to change notification settings

StephanDollberg/PingPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PingPong

PingPong is a small TCP/UDP latency testing tool similar to netperf written in Rust.

Usage

Basic example of running a UDP test:

Ponger (server):

$ cargo run --release --bin ponger -- --poll --pinger-addr 'localhost:20001' --ponger-addr 'localhost:20000' --udp
    Finished release [optimized] target(s) in 0.02s
     Running `target/release/ponger --poll --pinger-addr 'localhost:20001' --ponger-addr 'localhost:20000' --udp`

Runs the ponger in polling mode (busy polling).

Pinger (client):

$ cargo run --release --bin pinger -- -m 1000000 --warmup-messages 100000 --poll --pinger-addr '127.0.0.1:20001' --ponger-addr '127.0.0.1:20000' --udp
    Finished release [optimized] target(s) in 0.01s
     Running `target/release/pinger -m 1000000 --warmup-messages 100000 --poll --pinger-addr '127.0.0.1:20001' --ponger-addr '127.0.0.1:20000' --udp`
Stats (ns): p50: 3458 p95: 4662 p99: 5911 p999: 15757

Runs the pinger in polling mode and sends a million messages after 100k warmup messages and prints latency percentiles after running.

About

PingPong is a small TCP/UDP latency testing tool similar to netperf written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages