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

/bin/rm -fr ~/Products/ledger/opt

./acprep -j16 opt update || exit 0

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

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

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

exit 0