Go HTTP2 demo
http2.golang.org
http2.golang.org
EDIT: ok found it and it's striking, the difference is even more than 1 sec (total loading time)
Whatever problems pipelining may or may not have, a benchmark like this one loading a bunch of small static images is what it is designed for. I can see how some small-timey Go implementation would not have an actual HTTP/1.1 server, but for Google to come out with HTTP/2 without even having tested against pipelining is just pitiful.
These Google people seem hellbent on not ever having a fair comparison.
There is a simple server created with the library in a few lines. Try it out.
The library was built "the Go way" with the idea to support http2 as soon as it was final and we're looking to do that soon!
Hangs at this point for me -- anyone else having issues?
/clockstream streams the current time every second
And why does it require ~1KB of junk to force browsers to start rendering immediately?I've also seen simple dashboards that do this, displaying one line at a time as data comes in, simply never closing the connection.
Well behaved browsers should not do that if Content-Type header is set.
It's not specific to HTTP2, and is in fact possible since the server doesn't send a Content-Length so the client doesn't know when the server is done. Think of it not as streaming, but as a really slow and consistent huge response. HTTP2 just makes it smoother (remember: HTTP2 doesn't change semantics, it only changes how things are represented on the wire)
Now, the way the demo server uses that is a bit rough; there is a specification for that in the form of Server-Sent events (https://developer.mozilla.org/en-US/docs/Server-sent_events/...).
1 = http://https.downforeveryone.com/check.php?url=http2.golang....