podman/hack/perf
Valentin Rothberg 1b0e64a103 hack/perf/system-df.sh: add df benchmarks
The performance issue in #19467 drove me to add a benchmark for
system-df to avoid regressing on it in the future.

Comparing current HEAD to v4.6.0 yields

```
/home/vrothberg/containers/podman/bin/podman system df ran
201.47 times faster than /usr/bin/podman system df
```

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-08-23 14:17:27 +02:00
..
bz-2162111.sh hack/perf/bz-2162111.sh: use custom network 2023-02-02 16:52:32 +01:00
create.sh hack/perf: cleanup after benchmarks 2023-02-02 16:53:30 +01:00
helpers.bash add hack/perf for comparing two container engines 2023-01-23 16:38:12 +01:00
ps.sh hack/perf: cleanup after benchmarks 2023-02-02 16:53:30 +01:00
README.md add hack/perf for comparing two container engines 2023-01-23 16:38:12 +01:00
rm.sh hack/perf: cleanup after benchmarks 2023-02-02 16:53:30 +01:00
run.sh hack/perf: cleanup after benchmarks 2023-02-02 16:53:30 +01:00
start.sh hack/perf: cleanup after benchmarks 2023-02-02 16:53:30 +01:00
stop.sh hack/perf: cleanup after benchmarks 2023-02-02 16:53:30 +01:00
system-df.sh hack/perf/system-df.sh: add df benchmarks 2023-08-23 14:17:27 +02:00

A set of scripts to compare the performance of two container engines

Run the scripts via sudo sh $script.sh.

WARNING: Running any script will run systemd prune.

Use the following environment variables to change the default behavior:

  • ENGINE_A to set container engine A (default podman)
  • ENGINE_B to set container engine B (default docker)
  • RUNS to change the runs/repetitions of each benchmarks (default 100)
  • NUM_CONTAINERS to change the number of created containers for some benchmarks (e.g., ps) (default 100)
  • IMAGE to change the default container image (default docker.io/library/alpine:latest)