bench-orig.sh 879 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
Sylvain Schmitz's avatar
Sylvain Schmitz committed
6 7
xmlarray=(docbook teixsl htmlbook existdb histei xquerydoc marklogic xqjson guidomatic)
names=(DocBook TEI HTMLBook eXist-db HisTEI xquerydoc MarkLogic XQJSON guid-o-matic)
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 15
echo "\\midrule"

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