Skip to content
Snippets Groups Projects
Commit 8f637f30 authored by chafiol's avatar chafiol
Browse files

WIP: Pret à plotter en masse

parent 5f266226
Branches
No related merge requests found
......@@ -4,14 +4,14 @@ echo -e "iTest\ttaille\ttri\ttemps\tmem"
for iTest in `seq 1 2`
do
size=$(( `od -An -N4 -tu < /dev/urandom` % 1000000))
size=$(( `od -An -N4 -tu < /dev/urandom` % 100000))
max=$(( `od -An -N4 -tu < /dev/urandom` % 1000))
../tri -g $max $size 1>tabs/perf_tab.txt
pwd
../tri -g $max $size 1>../tabs/perf_tab.txt
#cat tabs/perf_tab.txt
for tri in "fusion" "insertion" "rapide"
for tri in "insertion" "rapide"
do
res=$( time ../tri --$tri ../tabs/perf_tab.txt 2>&1)
res=$( time ../tri --$tri ../tabs/perf_tab.txt 1>/dev/null)
echo -e "$iTest\t$taille\t$tri\t$res"
done
rm ../tabs/perf_tab.txt
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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