#!/bin/sh

gcc ./test.c -o test -DUSE_XOR
echo "Running XOR"
time ./test  | grep -v " 0" > /tmp/xor

gcc ./test.c -o test
echo "Running Jenkins"
time ./test  | grep -v " 0" > /tmp/jhash_not_folded

gcc ./test.c -o test -DHASH_FOLD
echo "Running Jenkins folded"
time ./test  | grep -v " 0" > /tmp/jhash_folded

echo "plot '/tmp/xor' with lines, '/tmp/jhash_not_folded' with lines" | gnuplot -persist
