4 ms·
If you just compress the base64, the overhead is 5%. But if you embed within an HTML file, with a different set of character frequencies, that increases. $
by tln 8y ago
If you just compress the base64, the overhead is 5%. But if you embed within an HTML file, with a different set of character frequencies, that increases.
$ cat index.html | gzip -9 | wc -c
14116
$ cat index.html bing.base64 | gzip -9 | wc -c
15994
$ expr 15994 - 14116
1878
$ cat bing.base64 | gzip -9 | wc -c
1432
- tinus_hn 8y agoIf you’re going to do an experiment like that you will probably want the file to be a whole lot bigger for more accurate results.