Skip to content
Snippets Groups Projects
Commit d6e59420 authored by malric litiere's avatar malric litiere
Browse files

fichier test tri fusion

parent 6635a2d4
Branches master
No related merge requests found
library(ggplot2)
perf <- read.table("testfusion.dat", header = TRUE)
ggplot(perf, aes(x=mem, y=temps, group=versionRap, colour=versionRap))) + facet_grid(algo ~ typeTableau) +
geom_point() + geom_smooth() +
ggtitle("Test tris fusion opti: Consommation memoire en fonction de la taille du Tableau")
ggsave("testfusion.png")
\ No newline at end of file
#!/bin/bash
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 'f'
do
for typeTableau in 'a' 'r' 'i' 'c'
do
for taille in 5000 10000 15000 20000 25000 30000
do
res=`( /usr/bin/time -f "%U\t%M" ../main $algo $taille $typeTableau $affichage $versionRap > /dev/null ) 2>&1`
echo -e "$iTest\t$taille\t$res\t$algo\t$typeTableau\t$versionRap"
done
done
done
done
\ 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