Advertisement
is_a_cdr

RoundTest.cpp

Jun 6th, 2016
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. alex@alex-xubuntu:/tmp$ clang++ -std=c++11 -lopencv_core -o test \
  2. > -Ofast -march=native -mtune=native -ffast-math RoundTest.cpp
  3. alex@alex-xubuntu:/tmp$ ./test
  4. 1: sum = 0, time = 3.75455
  5. 2: sum = 6250000, time = 0.428553
  6. 3: sum = -6250000, time = 0.429368
  7. 4: sum = 99999993, time = 0.371513
  8. 5: sum = 0, time = 0.447814
  9. 6: sum = 0, time = 0.370834
  10. 7: sum = 0, time = 0.371188
  11. 8: sum = 0, time = 0.86279
  12. alex@alex-xubuntu:/tmp$ g++ -std=c++11 -o test -Ofast -march=native -mtune=native -ffast-math RoundTest.cpp -lopencv_core
  13. alex@alex-xubuntu:/tmp$ ./test
  14. 1: sum = 0, time = 1.28906
  15. 2: sum = 6250000, time = 1.25554
  16. 3: sum = -6250000, time = 1.25936
  17. 4: sum = 99999993, time = 0.43766
  18. 5: sum = 0, time = 1.04787
  19. 6: sum = 0, time = 0.317587
  20. 7: sum = 0, time = 0.339587
  21. 8: sum = 0, time = 0.315362
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement