| name | benchmark-packing |
| description | Benchmark chunkah packing algorithm changes against a series of OCI images. |
Benchmark Packing
Overview
This skill guides benchmarking of packing algorithm changes by
chunking a series of consecutive OCI images and measuring layer
reuse between them. The key tools are:
tools/chunk-image-series.py -- chunks a series of images
tools/analyze-layer-reuse.py -- compares layer sharing across
the chunked series
Pipeline
1. Build chunkah
After making code changes, build the container image:
just buildimg --no-chunk
This produces localhost/chunkah:latest.
2. Prepare source images
Source images must be in containers-storage. Either:
From OCI archives:
for archive in /path/to/*.ociarchive; do
version=$(echo "${archive}" | grep -oP 'PATTERN')
skopeo copy "oci-archive:${archive}" "containers-storage:localhost/myrepo:${version}"
done
From a registry:
chunk-image-series.py can pull directly from a registry:
tools/chunk-image-series.py docker://quay.io/fedora/fedora-coreos \
--tag-filter '43.*' -- 10 ...