Reduced runtime of auto_printsize and balanced xorriso versus genisoimage
This commit is contained in:
parent
44cdc02804
commit
baf61c3aee
@ -46,26 +46,35 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
UPPER=40
|
DIR_UPPER=32
|
||||||
|
FILE_UPPER=10
|
||||||
|
|
||||||
# All must be set at this point
|
# All must be set at this point
|
||||||
# TODO: work out a smarter way to quickly generate different
|
# TODO: work out a smarter way to quickly generate different
|
||||||
# types of trees (long, deep, etc)
|
# types of trees (long, deep, etc)
|
||||||
printf "\n${SELF}: Generating sample tree in ${GEN_DATA_DIR} :\n"
|
printf "\n${SELF}: Generating sample tree in ${GEN_DATA_DIR} :\n"
|
||||||
for ((i1=0; i1 < ${UPPER}/4; i1++))
|
count=0
|
||||||
|
date
|
||||||
|
for ((i1=0; i1 < ${DIR_UPPER}/4; i1++))
|
||||||
do
|
do
|
||||||
for ((i2=0; i2 < ${UPPER}/2; i2++))
|
for ((i2=0; i2 < ${DIR_UPPER}/2; i2++))
|
||||||
do
|
do
|
||||||
for ((i3=0; i3 < ${UPPER}; i3++))
|
for ((i3=0; i3 < ${DIR_UPPER}; i3++))
|
||||||
do
|
do
|
||||||
mkdir -p ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3
|
mkdir -p ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3
|
||||||
touch ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3/FileOne
|
for ((i_file=0; i_file < ${FILE_UPPER}; i_file++))
|
||||||
|
do
|
||||||
|
echo -n \
|
||||||
|
> ${GEN_DATA_DIR}/DirOne$i1/DirTwo$i2/DirThree$i3/File_${i_file}
|
||||||
|
count=$((count + 1))
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
echo " $(expr '(' ${i1} + 1 ')' '*' ${UPPER} / 2 '*' ${UPPER}) " \
|
done
|
||||||
"files created ..."
|
echo " ${count} files created ..."
|
||||||
done
|
done
|
||||||
printf "done.\n"
|
printf "done.\n"
|
||||||
|
date
|
||||||
|
du -s "${GEN_DATA_DIR}"
|
||||||
|
|
||||||
printf "\n${SELF}: Performing several print size runs to neutralize possible disk cache impact.\n"
|
printf "\n${SELF}: Performing several print size runs to neutralize possible disk cache impact.\n"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user