go.sh 448 B

12345678910111213
  1. #!/bin/bash
  2. echo Compile with gcc -O2
  3. rm -rf *.bin
  4. g++ -O2 standalone.cc nmie.cc ucomplex.cc -lm -o scattnlay.bin
  5. cp scattnlay.bin ../scattnlay
  6. cd tests/shell
  7. # for file in `ls *.sh`; do ./$file; done
  8. repeats=30
  9. echo Run test for $repeats times
  10. time for i in `seq $repeats`; do ./test01.sh; done
  11. echo Run test with original binary for $repeats times
  12. cp ../../../scattnlay-0.3.0 ../../../scattnlay
  13. time for i in `seq $repeats`; do ./test01.sh; done