write.csv(round(runif (10, 100*1024, 10000*1024)), "paje_zoo.csv", row.names=FALSE);
for i in $(cat paje_zoo.csv | tail -n+2); do
~/dev/poti/b/examples/tracegen --filename=/tmp/trace-${i}.paje --size=${i}
done;
rm -rf build_perf/
mkdir build_perf/; cd build_perf/
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j 4
for repetition in $(seq 1 10); do
for size in $(cat paje_zoo.csv | tail -n+2); do
INPUT=/tmp/trace-${size}.paje
OUTPUT=/tmp/trace-${size}.csv
TIME=$(build_perf/pj_dump -q -t $INPUT)
GITV=$(git log --pretty=format:'%h' -n 1)
DATE=$(git log --pretty=format:'%aI' -n 1)
echo $GITV,$DATE,$size,$TIME
done
done >> data/perf_results.csv