mirror of https://github.com/containers/podman.git
hack/perf: cleanup after benchmarks
To leave not leave some artifacts arounds. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
parent
cb5a9e9f44
commit
8aa3776981
|
@ -6,3 +6,7 @@ echo_bold "Create $RUNS containers"
|
|||
hyperfine --warmup 10 --runs $RUNS \
|
||||
"$ENGINE_A create $IMAGE" \
|
||||
"$ENGINE_B create $IMAGE"
|
||||
|
||||
# Clean up
|
||||
$ENGINE_A system prune -f >> /dev/null
|
||||
$ENGINE_B system prune -f >> /dev/null
|
||||
|
|
|
@ -7,3 +7,7 @@ create_containers
|
|||
hyperfine --warmup 10 --runs $RUNS \
|
||||
"$ENGINE_A ps -a" \
|
||||
"$ENGINE_B ps -a"
|
||||
|
||||
# Clean up
|
||||
$ENGINE_A system prune -f >> /dev/null
|
||||
$ENGINE_B system prune -f >> /dev/null
|
||||
|
|
|
@ -8,3 +8,7 @@ hyperfine --warmup 10 --runs $RUNS \
|
|||
--prepare "$ENGINE_B create --name=123 $IMAGE" \
|
||||
"$ENGINE_A rm 123" \
|
||||
"$ENGINE_B rm 123"
|
||||
|
||||
# Clean up
|
||||
$ENGINE_A system prune -f >> /dev/null
|
||||
$ENGINE_B system prune -f >> /dev/null
|
||||
|
|
|
@ -16,3 +16,7 @@ hyperfine --warmup 10 --runs $RUNS \
|
|||
--prepare "$ENGINE_B rm -f 123 || true" \
|
||||
"$ENGINE_A run --rm --name=123 $IMAGE true" \
|
||||
"$ENGINE_B run --rm --name=123 $IMAGE true"
|
||||
|
||||
# Clean up
|
||||
$ENGINE_A system prune -f >> /dev/null
|
||||
$ENGINE_B system prune -f >> /dev/null
|
||||
|
|
|
@ -8,3 +8,7 @@ hyperfine --warmup 10 --runs $RUNS \
|
|||
--prepare "$ENGINE_B rm -f 123 || true; $ENGINE_B create --name=123 $IMAGE true" \
|
||||
"$ENGINE_A start 123" \
|
||||
"$ENGINE_B start 123"
|
||||
|
||||
# Clean up
|
||||
$ENGINE_A system prune -f >> /dev/null
|
||||
$ENGINE_B system prune -f >> /dev/null
|
||||
|
|
|
@ -8,3 +8,7 @@ hyperfine --warmup 10 --runs $RUNS \
|
|||
--prepare "$ENGINE_B rm -f 123 || true; $ENGINE_B run -d --name=123 $IMAGE top" \
|
||||
"$ENGINE_A stop 123" \
|
||||
"$ENGINE_B stop 123"
|
||||
|
||||
# Clean up
|
||||
$ENGINE_A system prune -f >> /dev/null
|
||||
$ENGINE_B system prune -f >> /dev/null
|
||||
|
|
Loading…
Reference in New Issue