Skip to content

Instantly share code, notes, and snippets.

@giuseppe
Last active April 10, 2024 22:38
Show Gist options
  • Save giuseppe/aa7dd1f14d3eb235a993e5334e653b36 to your computer and use it in GitHub Desktop.
Save giuseppe/aa7dd1f14d3eb235a993e5334e653b36 to your computer and use it in GitHub Desktop.
runc vs crun performance

running Podman as root

runc

[root@fedora-s-4vcpu-8gb-fra1-01 ~]# for i in {1..10}; do /usr/bin/time -f%e podman \
    --runtime /usr/bin/runc run --rm alpine true; done 2>&1 | sort
1.10
1.10
1.10
1.10
1.12
1.13
1.15
1.18
1.22
1.52

crun

[root@fedora-s-4vcpu-8gb-fra1-01 ~]# for i in {1..10}; do /usr/bin/time -f%e podman \
    --runtime /usr/bin/crun run --rm alpine true; done 2>&1 | sort
0.92
0.92
0.93
0.94
0.94
0.94
0.97
0.98
0.99
1.00

running Podman as rootless user

runc

[foo@fedora-s-4vcpu-8gb-fra1-01 ~]$ for i in {1..10}; do /usr/bin/time -f%e podman \
  --runtime /usr/bin/runc run --rm alpine true; done 2>&1 | sort
0.63
0.64
0.65
0.65
0.66
0.67
0.68
0.68
0.69
0.70

crun

[foo@fedora-s-4vcpu-8gb-fra1-01 ~]$ for i in {1..10}; do /usr/bin/time -f%e podman \
    --runtime /usr/bin/crun run --rm alpine true; done 2>&1 | sort
0.53
0.54
0.54
0.56
0.56
0.56
0.56
0.57
0.58
0.59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment