Deflatebench - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Deflatebench is a tool that can benchmark minigzip/minideflate. The tool is available on GitHub: zlib-ng/deflatebench.

AOCL-Compression provides minigzip/minideflate utilities as part of its test bench suite. The library needs to be built with BUILD_UTILITY cmake option set to ON to build these utilities. To obtain compression ratios similar to zlib-ng, AOCL_ZLIB_QUICK_MODE environment variable should be set to ON at runtime. Also, as deflatebench does not forward the environment to the minigzip/minideflate subprocesses that it launches, deflatebench.py needs to be modified to allow this. For example relevant subprocess calls in deflatebench.py can be edited to forward the parent environment as follows:

envparent = os.environ.copy()
subprocess.call(args,env=envparent ,stdout=devnull,**sp_args)