bench-basic.sh 940 Bytes
Newer Older
Sylvain Schmitz's avatar
Sylvain Schmitz committed
1 2 3 4 5
#!/bin/bash

# path to benchmark files
path=$1
full=$2
6 7
xmlarray=($(grep 'type="\(xslt\|xquery\)"' benchmarks-all-full.xml | sed -e 's/.*benchmark\/\(.*\)-full.xml.*/\1/'))
names=($(grep 'type="\(xslt\|xquery\)"' benchmarks-all-full.xml | sed -e 's/.*name="\(.*\)".*/\1/'))
Sylvain Schmitz's avatar
Sylvain Schmitz committed
8 9

echo "\\toprule"
Sylvain Schmitz's avatar
Sylvain Schmitz committed
10
echo "Source & \\textsf{Positive} &  \\textsf{Core~1.0} & \\textsf{Core~2.0} & \\textsf{Downward} & \\textsf{Vertical} & \\textsf{Forward} & \\textsf{EMSO\$^\\textsf 2\$} & \\textsf{NonMixing}\\\\"
Sylvain Schmitz's avatar
Sylvain Schmitz committed
11 12 13 14
echo "\\midrule"

for ((i = 0; i < ${#xmlarray[@]}; ++i))
do
Sylvain Schmitz's avatar
Sylvain Schmitz committed
15
    printf "${names[$i]}  \t"
16
    echo "`./numbers.sh $path/${xmlarray[$i]}$full.xml '<schemas>' 'xpath-efo-basic.rnc.*yes' 'xpath-1.0-core-basic.rnc.*yes' 'xpath-2.0-core-basic.rnc.*yes' 'xpath-1.0-downward-basic.rnc.*yes' 'xpath-1.0-vertical-basic.rnc.*yes' 'xpath-1.0-forward-basic.rnc.*yes' 'xpath-emso2-basic.rnc.*yes' 'xpath-non-mixing-basic.rnc.*yes'`\\\\"
Sylvain Schmitz's avatar
Sylvain Schmitz committed
17 18 19
done
echo "\\bottomrule"