Skip to main content

Comparative Study of Data Compression Algorithms: Zstandard, zlib & LZ4

  • Conference paper
  • First Online:
Science, Engineering Management and Information Technology (SEMIT 2023)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 2198))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+
from $39.99 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Free shipping worldwide - view details

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

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

  1. 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)

  2. Anup, A., Ashok, R., Raundale, P.: Comparative study of data compression techniques. Int. J. Comput. Appl. 178, 15–19 (2019)

    MATH  Google Scholar 

  3. Compression techniques, https://isaaccomputerscience.org/concepts/data_compr_loss?examBoard=all&stage=all, last accessed 2023/10/15

  4. 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)

    Google Scholar 

  5. Haque, M.J., Huda, M.N.: Study on data compression technique. Int. J. Comput. Appl. 159, 6–13 (2017)

    MATH  Google Scholar 

  6. 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)

    Google Scholar 

  7. Wayner, P.: Disappearing Cryptography: Information Hiding: Stenography & Watermarking. Morgan Kaufmann, Amsterdam (2009)

    Google Scholar 

  8. 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)

    Article  Google Scholar 

  9. Data compression, https://www.barracuda.com/support/glossary/data-compression, last accessed 2023/10/15

  10. 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)

    Article  Google Scholar 

  11. LZ4: LZ4: Extremely fast compression algorithm, https://github.com/lz4/lz4, last accessed 2023/10/15

  12. Chen, E.: Compression Algorithm, https://www.euccas.me/zlib/, last accessed 2023/10/15

  13. Lu, Z.-M., Guo, S.-Z.: Lossless Information Hiding in Images. Elsevier, Cambridge, MA (2017)

    Book  MATH  Google Scholar 

  14. Goswami, T., Sinha, G.R.: Statistical Modeling in Machine Learning: Concepts and Applications. Academic Press, Oxford (2023)

    MATH  Google Scholar 

  15. Deorowicz, S.: Silesia compression corpus, https://sun.aei.polsl.pl/~sdeor/index.php?page=silesia, last accessed 2023/10/15

  16. Poe, E.A.: The Raven, https://www.gutenberg.org/ebooks/17192, last accessed 2023/10/15

  17. 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

  18. Banik, R.: The movies dataset, https://www.kaggle.com/datasets/rounakbanik/the-movies-dataset, last accessed 2023/10/15

  19. C, B.: https://support.oneskyapp.com/hc/en-us/articles/208047697-JSON-sample-files, last accessed 2023/10/15

  20. Soitsu: https://soitsu.tumblr.com/post/126146797740/proper-driving-safety-even-if-youre-soft-enough, last accessed 2023/10/15

  21. NASA, ESA, Holwerda, B.: Spiral Galaxy UGC 2885. NASA (2020)

    Google Scholar 

  22. Evans, J.D.: Straightforward Statistics for the Behavioral Sciences. Brooks/Cole Publishing Company, Pacific Grove (1996)

    MATH  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Maria Seraphina Astriani.

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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

Keywords

Publish with us

Policies and ethics