#! /usr/bin/env bash
LC_NUMERIC=en_US.utf8 
OMP_NUM_THREADS=4

for make_option in comp_openmp comp_table comp_alphabeta comp_opt_oware comp_profile
do
	make $make_option
	for i in 18
	do
		perf stat -B -e cycles:u -e instructions:u -e branches:u -e branch-misses:u -r 50 -o bench_results_$make_option.txt --append ./comp $i 4 4 4 4 4 4 0 4 4 4 4 4 4 0 > /dev/null
	done
	make clean
done
