#!/bin/bash

echo "#command	configfile	compiler	options	runtime	std.dev.	randomization time	std.dev.	dEvap (kJ/mol)	std.dev.	Cv (J/mol K)	std.dev.	filesize (bytes)" > benchmark_results.dat

n=0
while read command configfile basename compiler options
do
	./run_one_set "$compiler" "$options" $n $command $configfile $basename
	echo -n $command"	"$configfile"	" >> benchmark_results.dat
	awk -f average.awk log$n.dat >> benchmark_results.dat
	echo -n "	" >> benchmark_results.dat
	ls -l $command | awk '{ print $5 }' >> benchmark_results.dat
	((n++))
done < benchmark_list


