mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
385cc59117
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
29 lines
339 B
Plaintext
Executable File
29 lines
339 B
Plaintext
Executable File
echo "Warm up"
|
|
i=1
|
|
while test $i != 9; do
|
|
`true`
|
|
: $((i++))
|
|
done
|
|
|
|
memleak
|
|
|
|
echo "Measuring memory leak..."
|
|
i=1
|
|
while test $i != 199; do
|
|
`true`
|
|
: $((i++))
|
|
done
|
|
i=1
|
|
while test $i != 199; do
|
|
`true`
|
|
: $((i++))
|
|
done
|
|
|
|
memleak
|
|
kb=$?
|
|
if test $kb -le 4; then
|
|
echo Ok #$kb
|
|
else
|
|
echo "Bad: $kb kb (or more) leaked"
|
|
fi
|