Skip to content
Snippets Groups Projects
Commit 2e4fa0e3 authored by LITIERE MALRIC's avatar LITIERE MALRIC
Browse files

make file

parent a061285a
Branches
No related merge requests found
all: main
main : tris.o main.c
main : tris.o utils.o main.c
gcc -o main -Wall utils.o -g main.c
tris.o : tris.c tris.h
gcc -c -Wall -g tris.c
utils.o : utils.c utils.h
gcc -c -Wall -g utils.c
clean :
rm *.o
#!/bin/sh
cmd = ""
affichage=0
versionRap=11
echo -e "iTest\ttaille\ttemps\tmem\talgo\ttypeTableau\tversionRap"
for iTest in `seq 1 3`
do
#taille=$(( `od -An -N4 -tu < /dev/urandom` % 1000000))
#taille=1000000
for algo in 'rapide' 'fusion' 'insertion'
do
for typeTableau in 'aleatoire' 'range' 'inverse' 'constant' 'middle'
do
for taille in 5000 10000 15000 20000 25000 30000
do
res=`( /usr/bin/time -f "%U\t%M" ../main $algo $taille $typeTableau> /dev/null ) 2>&1`
echo -e "$iTest\t$taille\t$res\t$algo\t$typeTableau\t$versionRap"
done
done
done
done
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