Commit c83c546c authored by Sylvain Schmitz's avatar Sylvain Schmitz

modified scripts generating histograms

parent 26c5653f
all: dist.dat axis-count.tex size-gte-100.tex matrices
all: dist.dat axis-count.tex size-gte-100.tex matrices xslt.dat xqy.dat
BENCHMARKS=benchmarks-all.xml \
benchmarks-xslt-full.xml benchmarks-xslt.xml \
......@@ -32,6 +32,14 @@ captured_dist.dat: $(wildcard ../../benchmark/*-full.xml)
./captured_distr.sh > captured_dist.dat
captured_dist.pdf: captured_dist.dat captured_dist.tex
pdflatex --shell-escape captured_dist.tex
xslt.dat: bench.sh $(wildcard ../../benchmark/*-full.xml) benchmarks-all-full.xml
./bench.sh `grep 'type="xslt"' benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > xslt.dat
xqy.dat: bench.sh $(wildcard ../../benchmark/*-full.xml) benchmarks-all-full.xml
./bench.sh `grep 'type="xquery"' benchmarks-all-full.xml | sed -e 's/.*href="\([^"]*\).*/\1/'` > xqy.dat
test.pdf: xslt.dat xqy.dat test.tex
pdflatex --shell-escape test.tex
%.xml: %-full.xml
cat $< | sed -e 's/-full.xml/.xml/' > $@
......
......@@ -10,8 +10,8 @@ names=( `grep 'nametex=' ../../relaxng/fragments-full.xml | sed 's/.*nametex=\"\
# which variants of each fragment (full variant is implicit)
variants=( "extra" "full" "orig" )
# the coverage of the simplified XPath 3.0 syntax provided in the paper
printf "\"\\\\\\\textsf{Full}\"\t`grep 'xpath-3.0-simplified.rnc.*yes' $files | wc -l`\t"
# the coverage of XPath 3.0
printf "\"\\\\\\\textsf{XPath 3.0}\"\t`grep 'xpath-3.0.rnc.*yes' $files | wc -l`\t"
for ((v=0; v<${#variants[@]}; ++v))
do
printf "0\t"
......@@ -35,10 +35,15 @@ do
then
name=${fragments[f]}
fi
# reserve `extras' to the positive fragment
if [ "${variants[v]}" = "extra" -a "${names[f]}" != "Positive" ]
# reserve `extras' to the positive and core 1.0 fragments
if [ "${variants[v]}" = "extra" ]
then
name="thisisadummy"
if [ "${names[f]}" = "Positive" -o "${names[f]}" = "Core~1.0" ]
then
:
else
name="thisisadummy"
fi
fi
printf "`grep $name.*yes $files | wc -l`\t"
done
......
......@@ -27,6 +27,7 @@
set boxwidth 1.4
set key font ",9"
plot "xslt.dat" using 2:xticlabels(1) notitle lt rgb "#202020",\
"" using 3 title "+extras" lt rgb "#fdc711",\
"" using 4 title "extended" lt rgb "#5f1d5e",\
"" using 5 title "baseline" lt rgb "#636369"
\end{gnuplot}
......@@ -49,33 +50,34 @@
set boxwidth 1.4
set key font ",9"
plot "xqy.dat" using 2:xticlabels(1) notitle lt rgb "#202020",\
"" using 4 title "extended" lt rgb "#5f1d5e",\
"" using 5 title "baseline" lt rgb "#636369"
\end{gnuplot}
\caption{Coverage of the XQuery sources.}
\end{figure*}
\begin{figure*}[htp]
\centering
% you need to compile with `pdflatex --shell-escape`
\begin{gnuplot}[terminal=cairolatex, terminaloptions={color size
11.0cm,6.0cm}]
set decimal locale
set format y "%'g"
set style fill solid 1.00 border rgb "#ffffff"
set ylabel "number of queries"
set xtics nomirror rotate by -45
set tic scale 0
set grid ytics lc rgb "#505050"
unset border
set style data histograms
set boxwidth 1.4
set key font ",9"
plot "global.dat" using 2:xticlabels(1) notitle lt rgb "#202020",\
"" using 3 title "+extras" lt rgb "#fdc711",\
"" using 4 title "extended" lt rgb "#5f1d5e",\
"" using 5 title "baseline" lt rgb "#636369"
\end{gnuplot}
\caption{Global coverage.}
\caption{Coverage of the XQuery sources.}
\end{figure*}
%% \begin{figure*}[htp]
%% \centering
%% % you need to compile with `pdflatex --shell-escape`
%% \begin{gnuplot}[terminal=cairolatex, terminaloptions={color size
%% 11.0cm,6.0cm}]
%% set decimal locale
%% set format y "%'g"
%% set style fill solid 1.00 border rgb "#ffffff"
%% set ylabel "number of queries"
%% set xtics nomirror rotate by -45
%% set tic scale 0
%% set grid ytics lc rgb "#505050"
%% unset border
%% set style data histograms
%% set boxwidth 1.4
%% set key font ",9"
%% plot "global.dat" using 2:xticlabels(1) notitle lt rgb "#202020",\
%% "" using 3 title "+extras" lt rgb "#fdc711",\
%% "" using 4 title "extended" lt rgb "#5f1d5e",\
%% "" using 5 title "baseline" lt rgb "#636369"
%% \end{gnuplot}
%% \caption{Global coverage.}
%% \end{figure*}
\end{document}
Markdown is supported
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