/http2-push-test

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Very Simple HTTP/2 (server push) test

Created to compare speed of HTTP 1.1 vs HTTP/2 vs HTTP/2 + server push.

Just an array of logos, served with unique cache-buster attribute on each reload. Also builds a Link: header for HTTP/2 server push (that seems to work on Firefox, but not on Chrome) when requested with ?push parameter. ?log stores timings in logs/timelog_xxx.xxx.xxx.xxx.csv (named with your IP)

And random_bytes() is used, so it needs PHP 7 - just to make everybody think about need to upgrade their old codez :-)