aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/build_benches.sh
blob: 931cebac3831e4a1f3c524bf9370eb2ea9d3becc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

TMPFILE=/tmp/1513times.txt

source benches.sh

rm -f commands.txt
rm -f $TMPFILE
for bench in $benches; do
  if [ "$1" == "" ]; then 
    (cd $bench && make -j20)
  else
    (cd $bench && make -j20) | grep -P "\d+: \d+\.\d+" >> $TMPFILE
  fi
done

if [ "$1" != "" ]; then
  cat $TMPFILE | sort -n -k 1 > $1
fi