I would be surprised if there were any performance differences (unless
you configured the client differently), since the only difference is
whether you're using a global client that you created or one that the
http package created.
Andy
On 11/30/20 9:58 AM, jun min wrote:
I'm make a simple http request with immutable header, immutable
request timeout
Which is prefered when writing a program with http client
1. request concurrently with a global http client
2. request concurrently with `http.DefaultClient.Do(req)`
They seems both cache and reuse http connection. Are there any
performance difference between them?
--
You received this message because you are subscribed to the Google
Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/8257cf94-7155-4da6-aa4d-a4e76cd7619bn%40googlegroups.com
<https://groups.google.com/d/msgid/golang-nuts/8257cf94-7155-4da6-aa4d-a4e76cd7619bn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/722e957f-88ba-fa69-12c6-e35819c8583d%40gmail.com.