To follow up on this, I've done some brief experimentation with different
compression methods and a variety of archives we use in automation. I've
uploaded the script I use here:
https://gist.github.com/catlee/80e4abae57d98180b755838ddbda6e04.
The results from my system are pasted below (lower scores are better). In
all cases zstd with the default setting is the preferred method. Are there
any other methods archives we should consider?
Cheers,
Chris
2019-05-30 11:50:55,333 - FITNESS for mozharness.zip:
2019-05-30 11:50:55,333 - bzip2 (default): 5.87
2019-05-30 11:50:55,333 - xz (max): 5.17
2019-05-30 11:50:55,333 - xz (default): 4.77
2019-05-30 11:50:55,333 - zstd (max): 2.44
2019-05-30 11:50:55,333 - gzip (max): 1.95
2019-05-30 11:50:55,333 - gzip (default): 1.78
2019-05-30 11:50:55,333 - zstd (default): 1.26
--
2019-05-30 11:59:43,806 - FITNESS for
firefox-69.0a1.en-US.win64.common.tests.tar.gz:
2019-05-30 11:59:43,806 - xz (max): 127.86
2019-05-30 11:59:43,806 - bzip2 (default): 89.52
2019-05-30 11:59:43,806 - xz (default): 51.55
2019-05-30 11:59:43,806 - zstd (max): 46.60
2019-05-30 11:59:43,806 - gzip (max): 40.55
2019-05-30 11:59:43,806 - gzip (default): 37.28
2019-05-30 11:59:43,806 - zstd (default): 28.78
--
2019-05-30 12:12:51,839 - FITNESS for
firefox-69.0a1.en-US.win64.installer.exe:
2019-05-30 12:12:51,839 - xz (max): 227.83
2019-05-30 12:12:51,839 - bzip2 (default): 173.62
2019-05-30 12:12:51,839 - xz (default): 119.74
2019-05-30 12:12:51,839 - gzip (max): 72.51
2019-05-30 12:12:51,839 - zstd (max): 71.87
2019-05-30 12:12:51,839 - gzip (default): 63.92
2019-05-30 12:12:51,839 - zstd (default): 37.57
--
2019-05-30 12:25:27,577 - FITNESS for
firefox-69.0a1.en-US.linux-x86_64.web-platform.tests.tar.gz:
2019-05-30 12:25:27,578 - xz (max): 206.53
2019-05-30 12:25:27,578 - bzip2 (default): 157.45
2019-05-30 12:25:27,578 - xz (default): 97.94
2019-05-30 12:25:27,578 - zstd (max): 74.08
2019-05-30 12:25:27,578 - gzip (max): 67.31
2019-05-30 12:25:27,578 - gzip (default): 64.80
2019-05-30 12:25:27,578 - zstd (default): 48.06
--
2019-05-30 12:52:52,874 - FITNESS for
firefox-69.0a1.en-US.mac.crashreporter-symbols.zip:
2019-05-30 12:52:52,874 - xz (max): 463.74
2019-05-30 12:52:52,874 - bzip2 (default): 140.90
2019-05-30 12:52:52,874 - xz (default): 114.19
2019-05-30 12:52:52,874 - zstd (max): 87.69
2019-05-30 12:52:52,874 - gzip (max): 62.37
2019-05-30 12:52:52,874 - gzip (default): 54.58
2019-05-30 12:52:52,874 - zstd (default): 33.59
--
2019-05-30 13:07:34,014 - FITNESS for firefox-69.0a1.en-US.mac.dmg:
2019-05-30 13:07:34,015 - xz (max): 241.71
2019-05-30 13:07:34,015 - bzip2 (default): 198.71
2019-05-30 13:07:34,015 - xz (default): 140.13
2019-05-30 13:07:34,015 - gzip (max): 84.63
2019-05-30 13:07:34,015 - zstd (max): 79.66
2019-05-30 13:07:34,015 - gzip (default): 73.84
2019-05-30 13:07:34,015 - zstd (default): 43.18
--
2019-05-30 13:21:15,153 - FITNESS for firefox-69.0a1.en-US.win64.zip:
2019-05-30 13:21:15,153 - xz (max): 236.04
2019-05-30 13:21:15,153 - bzip2 (default): 177.42
2019-05-30 13:21:15,154 - xz (default): 127.86
2019-05-30 13:21:15,154 - gzip (max): 76.46
2019-05-30 13:21:15,154 - zstd (max): 74.75
2019-05-30 13:21:15,154 - gzip (default): 63.98
2019-05-30 13:21:15,154 - zstd (default): 38.19
--
2019-05-30 13:36:42,315 - FITNESS for
firefox-69.0a1.en-US.linux-x86_64.tar.bz2:
2019-05-30 13:36:42,315 - xz (max): 247.77
2019-05-30 13:36:42,315 - bzip2 (default): 222.32
2019-05-30 13:36:42,315 - xz (default): 142.52
2019-05-30 13:36:42,315 - gzip (max): 88.78
2019-05-30 13:36:42,315 - zstd (max): 81.58
2019-05-30 13:36:42,315 - gzip (default): 70.58
2019-05-30 13:36:42,315 - zstd (default): 41.40