To compensate for #89.
Decompression is probably still faster with .gz but if we care about that zstd-compression is probably the better option.
I benchmarked rustc + rust-std + cargo + clippy + rustfmt + llvm-tools to help choose a compression level:
| compression |
size (MB) |
extraction time (sec) |
| none |
649 |
N/A |
| gz |
215 |
3.6 |
| xz |
127 |
8.4 |
| zstd -1 |
232 |
1.2 |
| zstd -2 |
217 |
|
| zstd -3 |
207 |
1.2 |
| zstd -4 |
203 |
|
| zstd -5 |
198 |
|
| zstd -6 |
193 |
|
| zstd -7 |
190 |
|
| zstd -8 |
188 |
|
| zstd -9 |
184 |
|
| zstd -10 |
182 |
1.25 |
| zstd -11 |
182 |
|
| zstd -12 |
181 |
|
| zstd -13 |
181 |
|
| zstd -14 |
181 |
|
| zstd -15 |
180 |
|
| zstd -16 |
174 |
|
| zstd -17 |
166 |
|
| zstd -18 |
159 |
|
| zstd -19 |
158 |
1.4 |
To compensate for #89.
I benchmarked rustc + rust-std + cargo + clippy + rustfmt + llvm-tools to help choose a compression level: