-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (44 loc) · 1.44 KB
/
benchmark.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: containerd
on:
push:
jobs:
pull:
# strategy:
# fail-fast: false
# matrix:
# image:
# - orfal/split:zstd-python-3.11
# - orfal/split:original-python-3.11
# - orfal/split:repacked-python-3.11
runs-on: ubuntu-latest
steps:
- name: Set up containerd
uses: crazy-max/ghaction-setup-containerd@v3
- name: install hyperfine
uses: jaxxstorm/action-install-gh-release@v1
with:
repo: sharkdp/hyperfine
cache: enable
- name: install nerdctl
uses: jaxxstorm/action-install-gh-release@v1
with:
repo: containerd/nerdctl
cache: enable
- name: benchmark
run: sudo env "PATH=$PATH" hyperfine --runs 5
--parameter-list image orfal/split:zstd-python-3.11,orfal/split:original-python-3.11
'nerdctl image pull --all-platforms docker.io/{image} --unpack=false'
--cleanup 'nerdctl image rm docker.io/{image}'
# - name: unpack
# run: nerdctl image pull --all-platforms docker.io/${{ matrix.image }} --unpack=false
# - name: Pull Docker image
# run: sudo ctr i pull --max-concurrent-downloads=50 docker.io/${{ matrix.image }} &2> /dev/null
diagram:
permissions:
actions: read
runs-on: ubuntu-latest
needs: [ containerd ]
steps:
- uses: Kesin11/actions-timeline@v2
with:
show-waiting-runner: 'false'