Commit c6585f7f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Set delay to 5 secs in benchmark.sh

parent 41189a23
......@@ -9,6 +9,8 @@ set -eux
ZIPFILE=$1
shift
DELAY=5
gomake -C zipfs
gomake -C bulkstat
......@@ -22,16 +24,17 @@ cd /tmp
${ZIPFS} ${MP} ${ZIPFILE} >& zipfs.log &
# Wait for FS to mount.
sleep 1
sleep ${DELAY}
find ${MP} > /tmp/zipfiles.txt
fusermount -u /tmp/zipbench
fusermount -u ${MP}
# The command below should be profiled.
${ZIPFS} ${MP} ${ZIPFILE} >& zipfs.log &
# Wait for zipfs to unpack and serve the file.
sleep 1
sleep ${DELAY}
# Warm caches.
${BULKSTAT} /tmp/zipfiles.txt
......@@ -39,7 +42,7 @@ ${BULKSTAT} /tmp/zipfiles.txt
6prof -p $! -d 20 -t 3 -hs -l -h -f >& /tmp/zipfs.6prof &
sleep 0.1
# C++ binaries can do this ~0.1ms/stat.
# C++ binaries can do this ~0.2ms/stat.
echo -e "\n\n"
${BULKSTAT} /tmp/zipfiles.txt
echo -e "\n\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment