Abstract
Data compression continues to grow more important in the era of rapid communication and transfer of data. Compression algorithms allow this to happen, but many different options are available. This comparative study investigates three lossless compression algorithms: Zstandard, zlib, and LZ4. This study has a unique aim to provide insight into the performance of each algorithm to identify their strengths and weaknesses in different applications. Previous studies have been done; however, this study evaluates the latest modern options for lossless compression algorithms with a larger variety of data types and measured benchmarks. The algorithms are tested with a corpus consisting of different files; text-based, image, PDF, CSV, and JSON. The tests are done a set number of times, and the average is taken to increase reliability. The benchmarks used to evaluate the algorithms are the compression ratio, size savings, compression speed, decompression speed, and respective space complexities. Through these values, it was found that zlib had the highest compression ratios, despite its generally slower compression speed. Zstandard’s compression ratios and size savings are slightly below zlib, however, it has higher speeds. LZ4 has the worst compression ratios out of the three but has the highest speeds due to its low overhead, making it suitable for small microprocessors. Each algorithm has its strengths and weaknesses, but zlib had the best overall performance in this study. Further research can be done to improve the generalizability and reliability of the findings.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Abbreviations
- AE:
-
Autoencoder
- CSV:
-
Comma-Separated Values
- HTTP:
-
Hypertext Transfer Protocol
- IoT:
-
Internet of Things
- JPEG:
-
Joint Photographic Experts Group
- JSON:
-
JavaScript Object Notation
- LEC:
-
Lossless compression algorithms
- LZMA:
-
Lempel-Ziv-Markov chain Algorithm
- PDF:
-
Portable Document Format
- PPMd:
-
Prediction by Partial Matching
- PPMonstr:
-
Prediction by Partial Matching Monster
- PNG:
-
Portable Network Graphics
References
Colett, Y., Turner, C.: Smaller and faster data compression with Zstandard, https://engineering.fb.com/2016/08/31/core-infra/smaller-and-faster-data-compression-with-zstandard/ (2016)
Anup, A., Ashok, R., Raundale, P.: Comparative study of data compression techniques. Int. J. Comput. Appl. 178, 15–19 (2019)
Compression techniques, https://isaaccomputerscience.org/concepts/data_compr_loss?examBoard=all&stage=all, last accessed 2023/10/15
Khairi, N.A., Bahari Jambek, A.: Study on data compression algorithm and its implementation in portable electronic device for internet of things applications. In: EPJ Web of Conferences, vol. 162 (2017)
Haque, M.J., Huda, M.N.: Study on data compression technique. Int. J. Comput. Appl. 159, 6–13 (2017)
Gupta, A., Bansal, A., Khanduja, V.: Modern lossless compression techniques: review, comparison and analysis. In: 2017 Second International Conference on Electrical, Computer and Communication Technologies (ICECCT), 1–8 (2017)
Wayner, P.: Disappearing Cryptography: Information Hiding: Stenography & Watermarking. Morgan Kaufmann, Amsterdam (2009)
Jayasankar, U., Thirumal, V., Ponnurangam, D.: A survey on data compression techniques: From the perspective of data quality, coding schemes, data type and applications. J. King Saud Univ. Comput. Inf. Sci. 33, 119–140 (2021)
Data compression, https://www.barracuda.com/support/glossary/data-compression, last accessed 2023/10/15
Lasch, R., Oukid, I., Dementiev, R., May, N., Demirsoy, S.S., Sattler, K.-U.: Faster & strong: string dictionary compression using sampling and fast vectorized decompression. VLDB J. 29, 1263–1285 (2020)
LZ4: LZ4: Extremely fast compression algorithm, https://github.com/lz4/lz4, last accessed 2023/10/15
Chen, E.: Compression Algorithm, https://www.euccas.me/zlib/, last accessed 2023/10/15
Lu, Z.-M., Guo, S.-Z.: Lossless Information Hiding in Images. Elsevier, Cambridge, MA (2017)
Goswami, T., Sinha, G.R.: Statistical Modeling in Machine Learning: Concepts and Applications. Academic Press, Oxford (2023)
Deorowicz, S.: Silesia compression corpus, https://sun.aei.polsl.pl/~sdeor/index.php?page=silesia, last accessed 2023/10/15
Poe, E.A.: The Raven, https://www.gutenberg.org/ebooks/17192, last accessed 2023/10/15
World Health Organization: Coronavirus disease 2019 (COVID-19) situation reports, https://www.who.int/indonesia/news/novel-coronavirus/situation-reports, last accessed 2023/10/15
Banik, R.: The movies dataset, https://www.kaggle.com/datasets/rounakbanik/the-movies-dataset, last accessed 2023/10/15
C, B.: https://support.oneskyapp.com/hc/en-us/articles/208047697-JSON-sample-files, last accessed 2023/10/15
Soitsu: https://soitsu.tumblr.com/post/126146797740/proper-driving-safety-even-if-youre-soft-enough, last accessed 2023/10/15
NASA, ESA, Holwerda, B.: Spiral Galaxy UGC 2885. NASA (2020)
Evans, J.D.: Straightforward Statistics for the Behavioral Sciences. Brooks/Cole Publishing Company, Pacific Grove (1996)
Acknowledgement
This work is supported by Research and Technology Transfer Office, Bina Nusantara University as a part of Bina Nusantara University’s International Research Grant entitled Teaching and Learning Augmented Reality Installation with Hologram Special Effect with contract number: 029/VRRTT/III/2023 and contract date: 1 March 2023.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Maulidina, A.P., Wijaya, R.A., Mazel, K., Astriani, M.S. (2024). Comparative Study of Data Compression Algorithms: Zstandard, zlib & LZ4. In: Mirzazadeh, A., Molamohamadi, Z., Erdebilli, B., Babaee Tirkolaee, E., Weber, GW. (eds) Science, Engineering Management and Information Technology. SEMIT 2023. Communications in Computer and Information Science, vol 2198. Springer, Cham. https://doi.org/10.1007/978-3-031-72284-4_24
Download citation
DOI: https://doi.org/10.1007/978-3-031-72284-4_24
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-72283-7
Online ISBN: 978-3-031-72284-4
eBook Packages: Computer ScienceComputer Science (R0)Springer Nature Proceedings excluding Computer Science