Closed d4nuu8 closed 2 years ago
This patch adds a zstd in-place packer and tar archiver.
The following little benchmarks compares gzip and zstd. The tests have been run with an example image of 1,9G size.
Compression with gzip which results in a 379M big file:
gzip -f sda2.img 38,78s user 0,71s system 99% cpu 39,529 total
Decompression with gzip:
gunzip sda2.img.gz 8,70s user 0,81s system 97% cpu 9,728 total
Compression with zstd which results in a 353M big file:
zstd -T0 sda2.img 6,66s user 0,65s system 152% cpu 4,791 total
Decompression with zstd:
unzstd sda2.img.zst 1,29s user 0,61s system 48% cpu 3,968 total
Signed-off-by: Daniel Braunwarth daniel@braunwarth.dev
This patch adds a zstd in-place packer and tar archiver.
The following little benchmarks compares gzip and zstd. The tests have been run with an example image of 1,9G size.
Compression with gzip which results in a 379M big file:
Decompression with gzip:
Compression with zstd which results in a 353M big file:
Decompression with zstd:
Signed-off-by: Daniel Braunwarth daniel@braunwarth.dev