HTTP/2 speed test demo. Tries to load a bunch of images via HTTP/2 or HTTP/1.
./gen_keys.sh
to generate cert/key for the HTTPS + HTTP/2 server. Requiresopenssl
. Set the subject name tolocalhost
.go build
PORT=8080 PROTO=h2 ./http2_tile_demo
to serve HTTP/2 over TLSPORT=8080 PROTO=h2c ./http2_tile_demo
to serve HTTP/2 without TLSPORT=8080 PROTO=http1 ./http2_tile_demo
to serve HTTP/1.1 without TLS
cf push -f manifest.yml --var domain=<your domain here>
. This will deploy a HTTP/1 and HTTP/2 (H2C) version of the demo.- Visit
https://h2c.<your domain here>
for the HTTP/2 version - Visit
http://http1.<your domain here>
for the HTTP/1 version