Skip to content
Extraits de code Groupes Projets
Valider 374ee84e rédigé par Nicolas MARIE's avatar Nicolas MARIE
Parcourir les fichiers

add graphs

parent c6d4e10b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de
avec 150 ajouts et 0 suppression
size,word,avg
5099959.0,5.0,0.07126216666666667
5099959.0,10.0,0.08014416666666667
5099959.0,20.0,0.10559916666666667
5099959.0,30.0,0.13192766666666667
size,word,avg
509998048.0,5.0,0.4150291666666666
509998048.0,10.0,0.552796
509998048.0,20.0,1.1389901666666666
509998048.0,30.0,2.3264755
size,word,avg
50999909.0,5.0,0.11842766666666667
50999909.0,10.0,0.14263733333333334
50999909.0,20.0,0.2529915
50999909.0,30.0,0.4316745
size,word,avg
5099959.0,10.0,0.32639233333333334
50999909.0,10.0,3.0740913333333335
509998048.0,10.0,30.457213
size,word,avg
5099959.0,20.0,1.0982496666666666
50999909.0,20.0,10.609810166666668
509998048.0,20.0,105.75566566666667
size,word,avg
5099959.0,30.0,2.402130666666667
50999909.0,30.0,23.3459075
size,word,avg
5099959.0,5.0,0.1603045
50999909.0,5.0,1.4491473333333333
509998048.0,5.0,14.4569215
size,word,avg
5099959.0,5.0,0.1603045
5099959.0,10.0,0.32639233333333334
5099959.0,20.0,1.0982496666666666
5099959.0,30.0,2.402130666666667
size,word,avg
509998048.0,5.0,14.4569215
509998048.0,10.0,30.457213
509998048.0,20.0,105.75566566666667
size,word,avg
50999909.0,5.0,1.4491473333333333
50999909.0,10.0,3.0740913333333335
50999909.0,20.0,10.609810166666668
50999909.0,30.0,23.3459075
#!/usr/bin/env bash
rm -rf data
mkdir -p data
cat ../bench_out_quadrortx.csv | tr -d ' ' > ./data/bench.csv
pushd data
echo "=== Querring files ==="
#for type in apm apm_omp apm_gpu
#do
# echo "=>${type}"
# csvsql --query "select * from (
# select size, word, avg(time) as avg
# from bench where type = '${type}'
# group by size, word
# ) where avg != 0" bench.csv | tail -n +2 > "bench_${type}.csv"
#done
for type in apm apm_omp apm_gpu
do
echo "=>${type}"
for size in 5099959 50999909 509998048
do
echo "-->${size}"
csvsql --query "select * from (
select size, word, avg(time) as avg
from bench where type = '${type}'
and size = '${size}'
group by word
) where avg != 0" bench.csv > "bench_${type}_${size}.csv"
done
done
for type in apm apm_omp apm_gpu
do
echo "=>${type}"
for word in 5 10 20 30
do
echo "-->${word}"
csvsql --query "select * from (
select size, word, avg(time) as avg
from bench where type = '${type}'
and word = '${word}'
group by size
) where avg != 0" bench.csv > "bench_${type}_${word}.csv"
done
done
echo "=== Generating Graphs ==="
for size in 5099959 50999909 509998048
do
echo "-->${size}"
#gnuplot -c ../plot_size.txt \
gnuplot -e "load '../plot_word.txt';
set output 'bench_${size}.svg';
plot \
'./bench_apm_${size}.csv' u 2:3 w lp title 'apm', \
'./bench_apm_omp_${size}.csv' u 2:3 w lp title 'apm_omp', \
'./bench_apm_gpu_${size}.csv' u 2:3 w lp title 'apm_gpu'
"
done
for word in 5 10 20 30
do
echo "-->${word}"
#gnuplot -c ../plot_size.txt \
gnuplot -e "load '../plot_size.txt';
set output 'bench_${word}.svg';
plot \
'./bench_apm_${word}.csv' u 1:3 w lp title 'apm', \
'./bench_apm_omp_${word}.csv' u 1:3 w lp title 'apm_omp', \
'./bench_apm_gpu_${word}.csv' u 1:3 w lp title 'apm_gpu'
"
done
popd
set autoscale
set grid
show grid
set datafile separator ','
set logscale x
set xlabel "Size of the main String"
set ylabel "Time (Lower is Better)"
set term svg size 1920 1080
set title "SingleThread/OMP/GPU - APM Benchmark - Strings compute Time"
set autoscale
set grid
show grid
set datafile separator ','
set xlabel "Size of words"
set ylabel "Time (Lower is Better)"
set term svg size 1920 1080
set title "SingleThread/OMP/GPU - APM Benchmark - Words compute Time"
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter