INNER CODE UNIT · Go
m
hb-chen/micro-starter · benchmark/_backup/micro_client.go:32
m := *total / n
log.Logf("concurrency: %d\nrequests per client: %d\n\n", n, m)
args := prepareArgs()
// Hystrix配置
hystrix.ConfigureCommand("hello.Hello.Say", hystrix.CommandConfig{
MaxConcurrentRequests: hystrix.DefaultMaxConcurrent * 2,
})
// b, _ := proto.Marshal(args)
// log.Logf("message size: %d bytes\n\n", len(b))
var wg sync.WaitGroup
wg.Add(n * m)
var trans uint64