mirror of
https://github.com/containers/podman.git
synced 2025-05-18 07:36:21 +08:00

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>
14 lines
292 B
Bash
Executable File
14 lines
292 B
Bash
Executable File
#!/usr/bin/env sh
|
|
source ./helpers.bash
|
|
|
|
setup
|
|
echo_bold "List $NUM_CONTAINERS created containers"
|
|
create_containers
|
|
hyperfine --warmup 10 --runs $RUNS \
|
|
"$ENGINE_A system df" \
|
|
"$ENGINE_B system df"
|
|
|
|
# Clean up
|
|
$ENGINE_A system prune -f >> /dev/null
|
|
$ENGINE_B system prune -f >> /dev/null
|