You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -107,13 +107,25 @@ Run the iperf3 client tests listed above on port 10002.
107
107
108
108
You can mix and match the libev and go servers and clients.
109
109
110
+
## Benchmark
111
+
112
+
You can benchmark the cipher finding code with
113
+
```
114
+
go test -cpuprofile cpu.prof -memprofile mem.prof -bench . -benchmem -run=^$ github.com/Jigsaw-Code/outline-ss-server/shadowsocks
115
+
```
116
+
117
+
You can inspect the CPU or memory profiles with `go tool pprof cpu.prof` or `go tool pprof mem.prof`, and then enter `web` on the prompt.
110
118
111
119
## Release
112
120
113
121
We use [GoReleaser](https://goreleaser.com/) to build and upload binaries to our [GitHub releases](https://github.com/Jigsaw-Code/outline-ss-server/releases).
- Export an environment variable named `GITHUB_TOKEN` with a repo-scoped GitHub token ([create one here](https://github.com/settings/tokens/new)):
118
130
```bash
119
131
export GITHUB_TOKEN=yournewtoken
@@ -128,9 +140,4 @@ Summary:
128
140
goreleaser
129
141
```
130
142
131
-
To test locally without tagging/uploading , use `--skip-publish`:
132
-
```bash
133
-
goreleaser --skip-publish
134
-
```
135
-
136
143
Full instructions in [GoReleaser's Quick Start](https://goreleaser.com/quick-start) (jump to the section starting "You’ll need to export a GITHUB_TOKEN environment variable").
0 commit comments