Advertisement
Guest User

GCC 4.8 vs Clang 4.2

a guest
Dec 2nd, 2012
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. # clang -v
  2. FreeBSD clang version 3.2 (trunk 162107) 20120817
  3.  
  4. # gcc48 -v
  5. gcc version 4.8.0 20121014 (experimental) (FreeBSD Ports Collection)
  6.  
  7. # sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'
  8. hw.machine: amd64
  9. hw.model: Intel(R) Xeon(R) CPU L3426 @ 1.87GHz
  10. hw.ncpu: 8
  11. hw.machine_arch: amd64
  12.  
  13. # ./bench.sh
  14. time ./gcc/prim-native-gcc
  15. 20,28 real 19,04 user 0,07 sys
  16. time ./gcc/prim-native-gcc-O2
  17. 4,83 real 4,51 user 0,02 sys
  18. time ./gcc/prim-native-gcc-O3
  19. 4,79 real 4,52 user 0,02 sys
  20. time ./gcc/prim-nocona-gcc
  21. 16,97 real 15,95 user 0,03 sys
  22. time ./gcc/prim-nocona-gcc-O2
  23. 5,18 real 4,67 user 0,03 sys
  24. time ./gcc/prim-nocona-gcc-O3
  25. 4,96 real 4,56 user 0,04 sys
  26. time ./gcc/prim-i7-gcc
  27. 20,98 real 19,14 user 0,07 sys
  28. time ./gcc/prim-i7-gcc-O2
  29. 4,91 real 4,54 user 0,02 sys
  30. time ./gcc/prim-i7-gcc-O3
  31. 5,06 real 4,56 user 0,01 sys
  32.  
  33. =======================================
  34.  
  35. time ./clang/prim-native-clang
  36. 17,66 real 16,02 user 0,08 sys
  37. time ./clang/prim-native-clang-O2
  38. 5,29 real 4,71 user 0,03 sys
  39. time ./clang/prim-native-clang-O3
  40. 5,02 real 4,64 user 0,02 sys
  41. time ./clang/prim-nocona-clang
  42. 17,45 real 15,97 user 0,05 sys
  43. time ./clang/prim-nocona-clang-O2
  44. 4,94 real 4,62 user 0,03 sys
  45. time ./clang/prim-i7-gcc
  46. 17,30 real 15,94 user 0,07 sys
  47. time ./clang/prim-i7-clang-O2
  48. 5,24 real 4,65 user 0,05 sys
  49. time ./clang/prim-i7-clang-O3
  50. 5,14 real 4,66 user 0,01 sys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement