Re: [go-nuts] Go http/2 implementation is x5 less per performant than http/1.1

2021-11-19 Thread Kirth Gersen
ix.netcom.com wrote: > > Use the replace directive to point the net package to your local copy. > > Much easier to test X changes than stdlib changes. > > On Nov 19, 2021, at 10:58 AM, Kirth Gersen wrote: > > Your CL works well with the POC. > > > Side questio

Re: [go-nuts] Go http/2 implementation is x5 less per performant than http/1.1

2021-11-19 Thread Kirth Gersen
sing that transport, >>>> so it is probably better to create a transport specifically for the >>>> high-throughput transfers. >>>> >>>> You can also create perform single shot requests like: >>>> >>>> if useH2C { >>>>

[go-nuts] http2.ConfigureTransports and H2C

2021-11-13 Thread Kirth Gersen
i'm trying to use http client to connect in http/2 clear text (H2C). this works: var dialer = &net.Dialer{ Timeout: 5 * time.Second, // fail quick FallbackDelay: -1, // don't use Happy Eyeballs } rt = &http2.Transport{ AllowHTTP: true, DialTLS: func(network, addr string, cfg *tls.Config) (net.Con

Re: [go-nuts] Go http/2 implementation is x5 less per performant than http/1.1

2021-11-09 Thread Kirth Gersen
er to achieve maximum performance. > > So 38Gbps for http2 vs 55 Gbps for http1. Better but still not great. > Still, with some minor changes, the net package could allow setting of a > large frame size on a per stream basis - which would enable much higher > throughput. The gRPC

[go-nuts] Go http/2 implementation is x5 less per performant than http/1.1

2021-11-08 Thread Kirth Gersen
http/2 implementation seems ~5x slower in bytes per seconds (when transfer is cpu capped). POC: https://github.com/nspeed-app/http2issue I submitted an issue about this 3 months ago in the Go Github ( https://github.com/golang/go/issues/47840 ) but first commenter misunderstood it and it got b