Skip to content
Snippets Groups Projects
Commit 1da22eaf authored by BERTUOL YOANN's avatar BERTUOL YOANN
Browse files

Script Hypo

parent 2372bf6c
No related merge requests found
......@@ -169,7 +169,9 @@ public static Collection add(Collection c, int size) {
### Analyse des résultats expérimentaux
Tout d'abord nous remarquons que la structure `LinkedList` as gagné en temps
Tout d'abord nous remarquons que la structure `LinkedList` as gagné en temps d'éxécution global mais au niveau de la mémoire, il n'y as aucun changement particulier.
De plus, on
### Discussion des résultats expérimentaux
......
......@@ -29,37 +29,20 @@ cd ../src
echo -e "Size\tOperation\tOpSize\tType\tTime\tMemory"
if [[ $1 == "Hypothese" ]]; then
for size in ${structSize[*]}; do
for operation in ${operationType[*]}; do
for opSize in ${operationSize[*]}; do
for type in ${structType[*]}; do
res=$((/usr/bin/time -f "\t%U\t%M" /usr/bin/java Hypothese $type $size $operation $opSize) 2>&1)
echo -e "$size\t$operation\t$opSize\t$type\t$res"
done
for size in ${structSize[*]}; do
for operation in ${operationType[*]}; do
for opSize in ${operationSize[*]}; do
for type in ${structType[*]}; do
res=$((/usr/bin/time -f "\t%U\t%M" /usr/bin/java Main $type $size $operation $opSize) 2>&1)
echo -e "$size\t$operation\t$opSize\t$type\t$res"
done
done
done
cd ../graphs
./graphique_hypothese.R
else
for size in ${structSize[*]}; do
for operation in ${operationType[*]}; do
for opSize in ${operationSize[*]}; do
for type in ${structType[*]}; do
res=$((/usr/bin/time -f "\t%U\t%M" /usr/bin/java Main $type $size $operation $opSize) 2>&1)
echo -e "$size\t$operation\t$opSize\t$type\t$res"
done
done
done
done
cd ../graphs
./graphique.R
fi
done
cd ../graphs
./graphique.R
cd ../src
rm *.class
#!/bin/bash
structType[0]="ArrayList"
structType[1]="LinkedList"
structType[2]="HashSet"
size = 500000
operationSize[0]=10000
operationSize[1]=20000
operationSize[2]=50000
operationSize[3]=100000
operationSize[4]=200000
operationType[0]="Ajout"
operationType[1]="Présence"
operationType[2]="Suppression"
cd ../src
/usr/bin/javac *.java
echo -e "Size\tOperation\tOpSize\tType\tTime\tMemory"
for operation in ${operationType[*]}; do
for opSize in ${operationSize[*]}; do
for type in ${structType[*]}; do
res=$((/usr/bin/time -f "\t%U\t%M" /usr/bin/java Hypothese $type $size $operation $opSize) 2>&1)
echo -e "$size\t$operation\t$opSize\t$type\t$res"
done
done
done
cd ../graphs
./graphique_hypothese.R
cd ../src
rm *.class
\ No newline at end of file
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