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

test du sh

parent 7974228b
Branches
No related merge requests found
library(ggplot2)
df <- read.table("data", sep="\t", header=TRUE) #lecture d'un csv avec tabulation en séprateur
y_axis <- "Temps de calcul"
x_axis <- "Taille du tableau à trier"
titre <- "Comparaison tri"
p <- ggplot(data=df,
aes(x=nbSlots, #nom des issues des colonnes de data
y=moyenneMessagesEnAttente,
colour=factor(pn)))
p <- p + geom_smooth()
p <- p + labs( x="Slot",
y=y_axis,
color="p*n",
title=titre)
# pour sauvegarder une image (différents formats ici)
ggsave(file="name.eps")
png("myplot.png")
print(p)
dev.off()
print(p)
......@@ -2,13 +2,13 @@
echo -e "taille\ttemps\tmem\talgo\ttypeTableau\n"
for taille in 10000 50000 100000 150000
for taille in 10000
do
for typeTableau in 'a' 't' 'i' 'c' 'm'
do
for algo in 'i' 'r' 'f'
do
res=`(/usr/bin/time -f "%Us,%MMhz" ./main $taille $typeTableau $algo > /dev/null ) 2>&1`
res=`(/usr/bin/time -f "%Us,%MMhz" ./main $taille $typeTableau $algo > /dev/null ) > data`
echo -e "$taille\t$res\t$typeTableau\t$algo"
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