Created tools/speed-test.sh for speed testing
This commit is contained in:
parent
d578395a65
commit
7708ed1a75
1 changed files with 18 additions and 0 deletions
18
tools/speed-test.sh
Executable file
18
tools/speed-test.sh
Executable file
|
|
@ -0,0 +1,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
|
||||||
Loading…
Add table
Reference in a new issue