example/go/perf/client/client.go
func main() {
	req, _ := http.NewRequest("GET", "http://localhost:7070/sync", nil)
	req.Header.Set("Accept", "text/event-stream")
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		log.Fatalf("request: %s", err)
	}
	r := resp.Body

	i := 0
	buff := make([]byte, 32*1024)
	for {
		n, err := r.Read(buff)
		if err != nil {
			break
		}
		i++
		log.Printf("#%d: %s", i, sizestr.ToString(int64(n)))
	}

	r.Close()
	log.Printf("closed")
}
func main() {
	req, _ := http.NewRequest("GET", "http://localhost:7070/sync", nil)
	req.Header.Set("Accept", "text/event-stream")
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		log.Fatalf("request: %s", err)
	}
	r := resp.Body

	i := 0
	buff := make([]byte, 32*1024)
	for {
		n, err := r.Read(buff)
		if err != nil {
			break
		}
		i++
		log.Printf("#%d: %s", i, sizestr.ToString(int64(n)))
	}

	r.Close()
	log.Printf("closed")
}
//go client for performance testing