- Create
folder/src
and clone project from GIT tofolder/src
- Run
./init-dev.sh
P.S. for build proto use ./build-proto.sh
command
- Start server
docker-compose up
- Run command
go test -run=10 -bench=.
- For show HAproxy stats open http://localhost:9000/haproxy_stats
or
- Run
client/client.go
Enjoy!
goos: linux
goarch: amd64
pkg: grpc-bench
BenchmarkClientHaProxy-4 10000 147564 ns/op
BenchmarkManyClientHaProxy-4 2000 504657 ns/op
BenchmarkClientNginx-4 10000 142201 ns/op
BenchmarkManyClientNginx-4 3000 485117 ns/op