summaryrefslogtreecommitdiff
path: root/tools/speed-test.sh
blob: 0139a11d250187db524711ee8a643d38ce21d0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -e

cd ~/src/ledger
/bin/rm -fr ~/Products/ledger/opt
./acprep --no-python -j16 opt make check

COMMIT=$(git describe --long --all)

SPEEDS=$(./acprep --no-python -j16 opt make speedtest 2>&1 \
         | grep "Finished executing command" \
         | awk '{print $1}' \
         | xargs)

echo $COMMIT,$(echo $SPEEDS | sed 's/ /,/g') >> speed.log

exit 0