# This work is marked with CC0 1.0. To view a copy of this license, visit http://creativecommons.org/publicdomain/zero/1.0
ARG="-g -march=native -c" #-fno-exceptions -fno-rtti
CLANG="clang++ $ARG"
GCC="g++ $ARG"

rm build/*.cpp build/*.o
cp gen.py build/
cd build
python3 gen.py
exec 2>&1

for file in *.cpp
do
	echo $file
	echo "Warmup $CLANG $file"
	$CLANG $file 

	time $CLANG $file
	time $CLANG $file
	echo ""
done

#exit 0
for file in *.cpp
do
	echo $file
	echo "Warmup $GCC $file"
	$GCC $file 

	time $GCC $file 
	time $GCC $file
	echo ""
done
