INNER CODE UNIT · Go

n

hb-chen/micro-starter · benchmark/_backup/micro_client.go:31

	n := *concurrency
	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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…