Advertisement
teknoraver

gcc-7.2 vs clang-4.0

Sep 17th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. root@turbo:/tmp/benchs# make clean ; make CFLAGS=-O3 CC=gcc-7 && ./dry 2>/dev/null |tail -1
  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. Dhrystones per Second: 54059900
  7.  
  8. root@turbo:/tmp/benchs# make clean ; make CFLAGS=-O3 CC=clang && ./dry 2>/dev/null |tail -1
  9. rm -f dry flops *.o
  10. clang -O3 -c dry.c -o dry1.o -Wall
  11. clang -O3 -DPASS2 dry.c dry1.o -o dry -Wall
  12. clang -O3 -DUNIX flops.c -o flops -Wall
  13. Dhrystones per Second: 57019044
  14.  
  15. root@turbo:/tmp/benchs# make clean ; make CFLAGS=-O3 CC=gcc-7 && ./flops
  16. rm -f dry flops *.o
  17. gcc-7 -O3 -c dry.c -o dry1.o -Wall
  18. gcc-7 -O3 -DPASS2 dry.c dry1.o -o dry -Wall
  19. gcc-7 -O3 -DUNIX flops.c -o flops -Wall
  20.  
  21. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  22.  
  23. Module Error RunTime MFLOPS
  24. (usec)
  25. 1 4.0146e-13 0.0018 7797.5593
  26. 2 -1.4166e-13 0.0004 16836.3296
  27. 3 4.7184e-14 0.0025 6790.8748
  28. 4 -1.2557e-13 0.0023 6388.3147
  29. 5 -1.3800e-13 0.0046 6305.7347
  30. 6 3.2380e-13 0.0044 6533.3220
  31. 7 -8.4583e-11 0.0026 4599.0950
  32. 8 3.4867e-13 0.0046 6514.3458
  33.  
  34. Iterations = 512000000
  35. NullTime (usec) = 0.0000
  36. MFLOPS(1) = 11348.2674
  37. MFLOPS(2) = 5818.9753
  38. MFLOPS(3) = 6375.8156
  39. MFLOPS(4) = 6548.9297
  40.  
  41. root@turbo:/tmp/benchs# make clean ; make CFLAGS=-O3 CC=clang && ./flops
  42. rm -f dry flops *.o
  43. clang -O3 -c dry.c -o dry1.o -Wall
  44. clang -O3 -DPASS2 dry.c dry1.o -o dry -Wall
  45. clang -O3 -DUNIX flops.c -o flops -Wall
  46.  
  47. FLOPS C Program (Double Precision), V2.0 18 Dec 1992
  48.  
  49. Module Error RunTime MFLOPS
  50. (usec)
  51. 1 4.0146e-13 0.0015 9363.1173
  52. 2 -1.4166e-13 0.0004 19002.1738
  53. 3 4.7184e-14 0.0026 6639.1662
  54. 4 -1.2557e-13 0.0024 6271.3639
  55. 5 -1.3800e-13 0.0037 7924.7871
  56. 6 3.2380e-13 0.0035 8241.1056
  57. 7 -8.4583e-11 0.0027 4482.0477
  58. 8 3.4867e-13 0.0047 6400.7681
  59.  
  60. Iterations = 512000000
  61. NullTime (usec) = 0.0000
  62. MFLOPS(1) = 11811.5860
  63. MFLOPS(2) = 6246.0563
  64. MFLOPS(3) = 6955.6103
  65. MFLOPS(4) = 6915.8030
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement