A quick comparion between cache manifest with many files, or a big zip file
This is a quick comparison between loading many small (70KB) files and zipping them all together, putting the zip in cache manifest and downloading that and loading the resources with zipjs. The files in the zip file were made by piping from /dev/random so zip couldn’t actually compress them, check out the createimages.sh in the files directory.
I did some inital testing myself with Chrome behind Charles, too bad my result showed that loading a zip file was slower than loading many small files.
Settings for Charles:
- Bandwidth: 8024
- Latency: 50
- Manyfiles: 400 files a 70 KB each, which gives a total of 29.5 MB
- Zip file: all of the above files zipped, but since it was made with /dev/random the compression rate is ~0%. Zip file is 28.1 MB
- Many files: 27 988 ms
- Zip file: 58 742 ms
To run this, clone and run the createimages.sh script to create all the necessary files.