Zarrzipan: A raster compression benchmarking tool
Zarrzipan is a compression benchmarking tool based on Zarr. It features a python API for declaratively describing numpy arrays and zarr compression pipelines to be benchmarked.
Note that this is experimental software written with significant LLM assistance. Some metrics such as memory usage and timing may not be accurately measured.
Usage
Zarrzipan includes a little CLI tool. Configure your arrays and jobs in a yaml file as demonstrated in zarrzipan.yaml and then run:
uv run zarrzipan compare | uv run zarrzipan render
The output of zarrzipan compare is ndjson, so if you are doing many runs you
can build out your results over time:
uv run zarrzipan compare >> output.json
And render the output independently:
uv run zarrzipan render -f output.json
Benchmark Results
The following table summarizes the benchmark results described in zarrzipan.yaml:
| Dataset Name | Pipeline Name | Chunk Shape | Iterations | Compression Ratio | Space Saving | Avg Compress Time (ms) | Avg Decompress Time (ms) | Lossiness (MAE) |
|---|---|---|---|---|---|---|---|---|
| Single band COG | Zlib level 5 | (1024, 1024) | 1 | 2.08x | 0.48 | 3651.11 | 383.99 | None |
| Single band COG | Blosc (defaults) | (1024, 1024) | 1 | 1.15x | 0.87 | 88.99 | 43.78 | None |
| Single band COG | Zlib level 5 | (2048, 2048) | 1 | 2.06x | 0.49 | 3609.53 | 402.76 | None |
| Single band COG | Blosc (defaults) | (2048, 2048) | 1 | 1.15x | 0.87 | 79.99 | 41.48 | None |
| Single band COG | Zlib level 5 | (4096, 4096) | 1 | 2.05x | 0.49 | 3593.96 | 398.66 | None |
| Single band COG | Blosc (defaults) | (4096, 4096) | 1 | 1.15x | 0.87 | 65.32 | 42.13 | None |
Other tooling like this
geotiff-benchmark
The geotiff-benchmark tool is a gdal-based compression benchmarking solution targeting the GeoTIFF format specifically. While not know to us prior to the initial Zarrzipan development, geotiff-benchmark is similar in its goals, and allows testing a set of declaratively-configured GeoTIFF compression pipelines. Read the corresponding blog post to learn more about the tool.
What does "zarrzipan" mean?
Zarrzipan, pronounced like marzipan, is like "Zarr zip analysis", where zip is a general allusion to compression and not a reference to the specific zip archive format.
Metadata
Release files for zarrzipan 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zarrzipan-0.1.0.tar.gz | 52.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zarrzipan-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.6 kB
Release files / zarrzipan-0.1.0.tar.gz
| Download URL | zarrzipan-0.1.0.tar.gz |
|---|---|
| Size | 52.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d336df74e2882013855ea549eab8a905c94757f9d043e1c06da3dcd9a36c5b0b
|
|
BLAKE2b-256 checksum How to use checksums |
1a2390c7575169f42daa5ff2123254dfa67d0dcc93c07e9cdf297960235f4889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 4, 2025.
Transparency logRelease files / zarrzipan-0.1.0-py3-none-any.whl
| Download URL | zarrzipan-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7ad59b14e53efaf6e6d7611b31bd2c0f2e3c378aaf4cfb5c6f2f87d22f0e201
|
|
BLAKE2b-256 checksum How to use checksums |
bb25f5967c6644ab4f6deacb3cf62ffafff2e9c0a7ea3c5060c27e3dd5bd6090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 4, 2025.
Transparency log