From 428c72460e154f3b1dedb8a1acb130655cc9412e Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Mon, 11 Mar 2024 17:46:49 +0100 Subject: [PATCH] docs: add run command benchmarks, Fix #10 Signed-off-by: Luca Di Maio --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index a262e4e..b3d997b 100644 --- a/README.md +++ b/README.md @@ -361,6 +361,20 @@ sys 0m0.450s ``` +```console +:~$ time (for i in {1..20}; do podman run --rm -ti alpine:latest whoami >/dev/null 2>/dev/null; done) + +real 0m10.125s +user 0m2.606s +sys 0m1.744s +:~$ time (for i in {1..20}; do ./lilipod run --rm -ti alpine:latest whoami >/dev/null 2>/dev/null; done) + +real 0m6.157s +user 0m3.545s +sys 0m2.613s + +``` + **It takes about 5~8ms to enter a container and execute stuff** This obviously is a completely useless and arbitrary metric compared to the difference of utility of the two tools.