Home

Awesome

connperf

<img src="https://img.shields.io/github/license/esrrhs/connperf"> <img src="https://img.shields.io/github/languages/top/esrrhs/connperf"> Go Report Card <img src="https://img.shields.io/github/v/release/esrrhs/connperf"> <img src="https://img.shields.io/github/downloads/esrrhs/connperf/total"> <img src="https://img.shields.io/docker/pulls/esrrhs/connperf"> <img src="https://img.shields.io/github/actions/workflow/status/esrrhs/connperf/go.yml?branch=master">

多协议带宽测试工具,支持协议:tcp、rudp、ricmp、kcp、quic、rhttp

示例

# ./connperf -l :8888 -p tcp -read
read 2057 MB/s 127.0.0.1:8888<--tcp-->127.0.0.1:32758 
read 1169 MB/s 127.0.0.1:8888<--tcp-->127.0.0.1:32758 
read 1178 MB/s 127.0.0.1:8888<--tcp-->127.0.0.1:32758 
read 1633 MB/s 127.0.0.1:8888<--tcp-->127.0.0.1:32758 
# ./connperf -s 127.0.0.1:8888 -p tcp -write
write 2065 MB/s 127.0.0.1:32758<--tcp-->127.0.0.1:8888 
write 1168 MB/s 127.0.0.1:32758<--tcp-->127.0.0.1:8888 
write 1179 MB/s 127.0.0.1:32758<--tcp-->127.0.0.1:8888 
write 1629 MB/s 127.0.0.1:32758<--tcp-->127.0.0.1:8888 
# docker run --rm --network host esrrhs/connperf ./connperf -l :8888 -p tcp -read
# docker run --rm --network host esrrhs/connperf ./connperf -s 127.0.0.1:8888 -p tcp -write

协议对比

代理方式速度
rhttp0.008478 MB/s
quic0.019454 MB/s
tcp0.563017 MB/s
kcp2.943687 MB/s
rudp3.252355 MB/s
ricmp3.556728 MB/s