simdjson/scripts/parsingcompdata.sh

24 lines
528 B
Bash
Raw Normal View History

2018-12-28 06:44:10 +08:00
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
cd $SCRIPTPATH/..
datadirectory=$SCRIPTPATH/data/$(uname -n)
mkdir -p $datadirectory
os=$(uname)
make parsingcompetition
echo "parsing (with competition)"
echo
for i in $SCRIPTPATH/../jsonexamples/*.json; do
[ -f "$i" ] || break
echo $i
shortname=$(basename $SCRIPTPATH/$i.table)
corename=$(basename ${shortname%.*})".pdf"
$SCRIPTPATH/../parsingcompetition -t $i > $datadirectory/$shortname
echo
done
echo "see results in "$datadirectory