speed-test.sh 345 B

1234567891011121314151617
  1. #!/bin/bash
  2. /bin/rm -fr ~/Products/ledger/opt
  3. ./acprep -j16 opt update || exit 0
  4. COMMIT=$(git describe --long --all)
  5. SPEEDS=$(./acprep -j16 opt make speedtest 2>&1 \
  6. | grep "Finished executing command" \
  7. | awk '{print $1}' \
  8. | xargs)
  9. echo $COMMIT,$(echo $SPEEDS | sed 's/ /,/g') >> ~/src/ledger/speed.log
  10. exit 0