zstd benchmarking #467
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
permissions: | |
contents: read | |
jobs: | |
zstd-benchmarking: | |
runs-on: pub-hk-ubuntu-22.04-xlarge | |
strategy: | |
matrix: | |
stack_version: ["20", "22", "24"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run Docker image | |
run: | | |
mkdir -p upload | |
docker run --rm --volume="${PWD}/upload:/tmp/upload" -w /tmp/upload heroku/heroku:${{matrix.stack_version}}-build bash -c ' | |
set -ex | |
curl -o python.tar.gz https://heroku-buildpack-python.s3.us-east-1.amazonaws.com/heroku-22/runtimes/python-3.12.2.tar.gz | |
gzip -d python.tar.gz | |
time zstd --long -19 python.tar -v -o python-19.tar.zst | |
time zstd --long -19 -T0 python.tar -v -o python-19-T0.tar.zst | |
time zstd --long -22 --ultra python.tar -v -o python-22.tar.zst | |
time zstd --long -22 --ultra -T0 python.tar -v -o python-22-T0.tar.zst | |
' | |
- run: ls -al upload/ | |
- name: Compress on host | |
run: | | |
set -ex | |
cd upload/ | |
time zstd --long -19 python.tar -v -o python-19-host.tar.zst | |
time zstd --long -19 -T0 python.tar -v -o python-19-T0-host.tar.zst | |
time zstd --long -22 --ultra python.tar -v -o python-22-host.tar.zst | |
time zstd --long -22 --ultra -T0 python.tar -v -o python-22-T0-host.tar.zst | |
- name: Compare sizes | |
run: ls -al upload/ |