Skip to content
Snippets Groups Projects
Tests.sh 814 B
Newer Older
type[0]="ArrayList"
type[1]="LinkedList"
type[2]="Vector"
Antoine Boch's avatar
Antoine Boch committed
sizeType[0]=100000
sizeType[1]=500000
sizeType[2]=1000000
Antoine Boch's avatar
Antoine Boch committed
occurrence[0]=100000
occurrence[1]=500000
occurrence[2]=1000000
operationType[0]="enTete"
operationType[1]="enQueue"
operationType[2]="effacer"

#type = $1 (type)
#size = $4 taille de la  (sizetype)
#operation = $2 (operationType)
#opSize = $3 (occu)
cd src

test(){
    echo -n "$1 $4 $2 $3 " 2>&1
    /usr/bin/time -f"\t%U\t%M" java Main $1 $2 $3 $4 2>&1
}
echo "struct Type test occu temps memoire" 2>&1
for sType in ${sizeType[*]}; do
    for test in ${operationType[*]}; do
        for occu in ${occurrence[*]}; do
            for struct in ${type[*]}; do
               test $struct $test $occu $sType
            done
        done
    done
done
Antoine Boch's avatar
Antoine Boch committed
Rscript /graphs/cmdR.R