Skip to content

Commit

Permalink
hack/perf/system-df.sh: add df benchmarks
Browse files Browse the repository at this point in the history
The performance issue in containers#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 <[email protected]>
  • Loading branch information
vrothberg committed Aug 23, 2023
1 parent 7f6bcbb commit 1b0e64a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions hack/perf/system-df.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/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

0 comments on commit 1b0e64a

Please sign in to comment.