Advertisement
Guest User

clang-5 vs gcc-7.2

a guest
Oct 23rd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. matteo@raver:~/src/benchs$ make CFLAGS=-O3 CC=gcc-7 clean all && ./flops 2>/dev/null
  2. rm -f dry flops *.o
  3. gcc-7 -O3 -c dry.c -o dry1.o -Wall
  4. gcc-7 -O3 -DPASS2 dry.c dry1.o -o dry -Wall
  5. gcc-7 -O3 -DUNIX flops.c -o flops -Wall
  6.  
  7. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  8.  
  9. Module Error RunTime MFLOPS
  10. (usec)
  11. 1 4.0146e-13 0.0042 3298.5546
  12. 2 -1.4166e-13 0.0033 2117.9542
  13. 3 4.7184e-14 0.0042 4071.8144
  14. 4 -1.2557e-13 0.0038 3949.4349
  15. 5 -1.3800e-13 0.0074 3910.9129
  16. 6 3.2380e-13 0.0069 4232.5364
  17. 7 -8.4583e-11 0.0126 954.9911
  18. 8 3.4867e-13 0.0075 3987.1808
  19.  
  20. Iterations = 512000000
  21. NullTime (usec) = 0.0000
  22. MFLOPS(1) = 2512.0259
  23. MFLOPS(2) = 1980.5484
  24. MFLOPS(3) = 3134.8066
  25. MFLOPS(4) = 4071.7976
  26.  
  27. matteo@raver:~/src/benchs$ make CFLAGS=-O3 CC=clang-5.0 clean all && ./flops 2>/dev/null
  28. rm -f dry flops *.o
  29. clang-5.0 -O3 -c dry.c -o dry1.o -Wall
  30. clang-5.0 -O3 -DPASS2 dry.c dry1.o -o dry -Wall
  31. clang-5.0 -O3 -DUNIX flops.c -o flops -Wall
  32.  
  33. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  34.  
  35. Module Error RunTime MFLOPS
  36. (usec)
  37. 1 4.0146e-13 0.0042 3367.1505
  38. 2 -1.4166e-13 0.0033 2130.9994
  39. 3 4.7184e-14 0.0040 4300.4378
  40. 4 -1.2557e-13 0.0038 3989.6560
  41. 5 -1.3800e-13 0.0058 4985.2671
  42. 6 3.2380e-13 0.0056 5217.1212
  43. 7 -8.4583e-11 0.0083 1443.7413
  44. 8 3.4867e-13 0.0072 4143.1468
  45.  
  46. Iterations = 512000000
  47. NullTime (usec) = 0.0000
  48. MFLOPS(1) = 2551.8586
  49. MFLOPS(2) = 2690.5826
  50. MFLOPS(3) = 3762.9836
  51. MFLOPS(4) = 4436.3620
  52.  
  53. matteo@raver:~/src/benchs$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement