Skip to content

valetanddama/pubsub_cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Запустить сервер

go run pkg/cmd/cluster/main.go
go run pkg/cmd/cluster/main.go --getErrors

Собрать билд

go build -o ./bin/cluster pkg/cmd/cluster/*.go

Запустить бенчмарки

go test -benchmem -bench=. test/benchmark_test.go

BenchmarkSendMessageForRoleGenerator-8   30000         47023  ns/op     240 B/op     7  allocs/op
BenchmarkGetMessageForRoleHandler-8      20000         54696  ns/op     516 B/op     15 allocs/op
BenchmarkCheckServerRole-8               20000         92195  ns/op     392 B/op     13 allocs/op
BenchmarkGetRedisConn-8                  1000000000    2.53   ns/op     0   B/op     0  allocs/op

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages