Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 772 Bytes

README.md

File metadata and controls

46 lines (29 loc) · 772 Bytes

ehco

ehco is a echo proxy and a typo

主要功能

  • tcp/udp relay
  • 从配置文件启动
  • 从远程启动
  • benchmark

TODO

  • 热重载配置

BenchMark

iperf:

# run iperf server on 5201
iperf3 -s

# run relay server listen 1234 to 9001 (raw)
go run cmd/main.go -l 0.0.0.0:1234 -r 0.0.0.0:5201

# listen 1234 relay over ws to 1236
go run cmd/main.go -l 0.0.0.0:1234  -r ws://0.0.0.0:1236 -tt ws

# listen 1236 through ws relay to 5201
go run cmd/main.go -l 0.0.0.0:1236 -lt ws -r 0.0.0.0:5201

# benchmark tcp
iperf3 -c 0.0.0.0 -p 1234

# benchmark upd
iperf3 -c 0.0.0.0 -p 1234 -u -b 1G --length 1024
iperf raw relay(raw)
tcp 62.6 Gbits/sec 23.9 Gbits/sec
udp 1.38 Gbits/sec 1.0 Gbits/sec