Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehco1996 committed Jun 18, 2020
1 parent 3d7ca32 commit 667b1e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ ehco is a network relay tool and a typo :)
* 热重载配置


## BenchMark
## 使用说明

参考Benchmark


## Benchmark

iperf:

Expand All @@ -29,20 +34,27 @@ iperf3 -s
go run cmd/main.go -l 0.0.0.0:1234 -r 0.0.0.0:5201

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

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


# run through file
go run cmd/main.go -c config.json

# benchmark tcp
iperf3 -c 0.0.0.0 -p 1234

# benchmark tcp through wss
iperf3 -c 0.0.0.0 -p 1235

# benchmark upd
iperf3 -c 0.0.0.0 -p 1234 -u -b 1G --length 1024

```

| iperf | raw | relay(raw) | relay(wss) |
| ---- | ---- | ---- | ---- |
| tcp | 62.6 Gbits/sec | 23.9 Gbits/sec | 2.77 Gbits/sec |
| tcp | 62.6 Gbits/sec | 23.9 Gbits/sec | 3.10 Gbits/sec |
| udp | 2.2 Gbits/sec | 2.2 Gbits/sec | xx |
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var ConfigPath string
func main() {
app := cli.NewApp()
app.Name = "ehco"
app.Version = "0.0.6"
app.Version = "0.0.8"
app.Usage = "A proxy used to relay tcp/udp traffic to anywhere"
app.Flags = []cli.Flag{
&cli.StringFlag{
Expand Down

0 comments on commit 667b1e1

Please sign in to comment.