feat: benchmark script comparing Krane with Docker Desktop #32
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/bench-vs-docker-desktop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
scripts/bench.py, which compares Krane on the host's Docker Engine with Docker Desktop for Linux on the same machine, and a README section on running it.Same engine underneath, but Docker Desktop runs dockerd in a QEMU/KVM VM beside an Electron UI. So it measures:
docker run --rmandexeclatency, bind-mount I/O, published-port download,docker buildEach target runs with the other stopped. Docker Desktop is restarted at the end if it was running, and the docker context is put back, since starting Docker Desktop switches it to
desktop-linux. Stdlib Python only. Results go tobench-results/(gitignored).First results (my VM: 2 vCPUs, 6 GiB, Docker Desktop 4.101 at 2 GiB / 2 CPUs; full defaults)
Host: upper-wolfjaw · x86_64 · 2 CPUs · 5.8 GiB · kernel 6.12.118+deb13-cloud-amd64. Memory is pss; CPU is percent of one core.
Docker Desktop's engine 29.10.1 vs native 29.9.1. VM numbers, so treat them as indicative; real-hardware runs will differ.
Worth a follow-up
With Krane open, dockerd + containerd use about 6.5% of a core with 5 unrelated containers running (about 0.2% with Krane closed). That's the per-container streaming stats from #11. Tray-only Krane still adds about 3%. Possibly: stream stats only while the window is visible.