Chore: benchmark explanation

This commit is contained in:
Dreamacro
2021-07-22 00:01:11 +08:00
parent 507ba16065
commit b3a293ab07
2 changed files with 13 additions and 2 deletions

View File

@ -47,3 +47,13 @@ Prerequisite
```
$ go test -p 1 -v
```
benchmark (Linux)
> Cannot represent the throughput of the protocol on your machine
> but you can compare the corresponding throughput of the protocol on clash
> (change chunkSize to measure the maximum throughput of clash on your machine)
```
$ go test -benchmem -run=^$ -bench .
```