go-speed-test.sh 918 B

12345678910111213141516171819
  1. #!/bin/bash
  2. path=$PWD
  3. PROGRAM='scattnlay.bin'
  4. echo Compile with gcc
  5. rm -f $PROGRAM
  6. #google profiler ######## FAST!!!
  7. # file=speed-test.cc
  8. # g++ -Ofast -std=c++11 $file ../../src/nmie.cc -lm -lrt -o $PROGRAM /usr/lib/libtcmalloc.so.4 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -march=native -mtune=native -msse4.2
  9. file=speed-test-applied.cc
  10. g++ -Ofast -std=c++11 $file ../../src/nmie.cc ../../src/nmie-applied.cc -lm -lrt -o $PROGRAM /usr/lib/libtcmalloc.so.4 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -march=native -mtune=native -msse4.2
  11. echo Should be:
  12. echo test01, +1.41154e+00, +4.17695e-01, +9.93844e-01, +1.59427e-01, +1.25809e+00, +3.67376e-01, +2.95915e-01
  13. echo Result:
  14. time ./$PROGRAM -l 5 0.4642 1.8000 1.7000 0.7114 0.8000 0.7000 0.7393 1.2000 0.0900 0.9168 2.8000 0.2000 1.0000 1.5000 0.4000 -t 0.0 90.0 5 -c test01
  15. # #result