Commit e17b3f82 authored by Ben Hazelwood's avatar Ben Hazelwood
Browse files

Rank-performance script is done

parent 49fc7e68
......@@ -18,7 +18,7 @@ while true; do
fi
if [ $2 = "rr" ]; then
let "rank = ($rank + 1) % 4"
let "rank = ($iteration - 1) % 4"
fi
if [ $2 = "random" ]; then
......@@ -31,17 +31,16 @@ while true; do
exit 1
fi
if [ $1 = "constant" ]; then
sleep 1
sleep 5
fi
if [ $1 = "increasing" ]; then
sleep $((10.0 / $iteration))
sleep $(python -c "print(max(0.5,20/$iteration))")
fi
if [ $1 = "random" ]; then
sleep `python3 -c "from random import randint; print(randint(1,50))"`
sleep `python3 -c "from random import uniform; print(uniform(0.2,20))"`
fi
((iteration++))
done
......
Supports Markdown
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