From 107c470356e76dff780c5cf197a376d5667097b8 Mon Sep 17 00:00:00 2001 From: Cyril SIX Date: Wed, 15 May 2019 15:31:20 +0200 Subject: CSV file generation for benches (only binary_search for now) --- test/monniaux/run_benches.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 test/monniaux/run_benches.sh (limited to 'test/monniaux/run_benches.sh') diff --git a/test/monniaux/run_benches.sh b/test/monniaux/run_benches.sh new file mode 100755 index 00000000..9537f63a --- /dev/null +++ b/test/monniaux/run_benches.sh @@ -0,0 +1,23 @@ + +source benches.sh + +rm -f commands.txt +for bench in $benches; do + echo "(cd $bench && make -j5 exec)" >> commands.txt +done + +cat commands.txt | xargs -n1 -I{} -P4 bash -c '{}' + +## +# Gather all the CSV files +## + +benches_csv="" +for bench in $benches; do + if [ -f $bench/measures.csv ]; then + benches_csv="$benches_csv $bench/measures.csv" + fi +done + +nawk 'FNR==1 && NR!=1{next;}{print}' $benches_csv > measures.csv +echo "measures.csv done" -- cgit