Advertisement
bunnytaur

graphite benchmark

Jun 14th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. Did a little benchmark using graphite on the whetstone source. As you can see graphite makes a huge difference here. Even on a single-core machine.
  2. The source of the whetstone benchmark can be downloaded here: http://www.netlib.org/benchmark/whetstone.c
  3. I have not modified the source in any way.
  4.  
  5. Machine specs:
  6. HP Pavilion a1220n
  7. CPU: 2.93Ghz Pentium-4 516
  8. RAM: 3GB DDR2
  9. Kernel: Linux jennifur 3.4.2-ck2 #1 PREEMPT Tue Jun 12 13:37:24 EDT 2012 x86_64 Intel(R) Pentium(R) 4 CPU 2.93GHz GenuineIntel GNU/Linux
  10.  
  11. I have compiled whetstone-graphite using:
  12. gcc whetstone.c -o whetstone-graphite -lm -march=native -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -O2
  13.  
  14.  
  15. root@jennifur:/home/jennifur# time ./whetstone 100000
  16.  
  17. Loops: 100000, Iterations: 1, Duration: 6 sec.
  18. C Converted Double Precision Whetstones: 1666.7 MIPS
  19.  
  20. real 0m6.066s
  21. user 0m6.065s
  22. sys 0m0.000s
  23. root@jennifur:/home/jennifur# time ./whetstone 100000
  24.  
  25. Loops: 100000, Iterations: 1, Duration: 6 sec.
  26. C Converted Double Precision Whetstones: 1666.7 MIPS
  27.  
  28. real 0m6.042s
  29. user 0m6.040s
  30. sys 0m0.000s
  31. root@jennifur:/home/jennifur# time ./whetstone 100000
  32.  
  33. Loops: 100000, Iterations: 1, Duration: 6 sec.
  34. C Converted Double Precision Whetstones: 1666.7 MIPS
  35.  
  36. real 0m6.073s
  37. user 0m6.071s
  38. sys 0m0.000s
  39. root@jennifur:/home/jennifur# time ./whetstone-graphite 100000
  40.  
  41. Loops: 100000, Iterations: 1, Duration: 2 sec.
  42. C Converted Double Precision Whetstones: 5000.0 MIPS
  43.  
  44. real 0m2.285s
  45. user 0m2.266s
  46. sys 0m0.000s
  47. root@jennifur:/home/jennifur# time ./whetstone-graphite 100000
  48.  
  49. Loops: 100000, Iterations: 1, Duration: 2 sec.
  50. C Converted Double Precision Whetstones: 5000.0 MIPS
  51.  
  52. real 0m2.265s
  53. user 0m2.264s
  54. sys 0m0.000s
  55. root@jennifur:/home/jennifur# time ./whetstone-graphite 100000
  56.  
  57. Loops: 100000, Iterations: 1, Duration: 2 sec.
  58. C Converted Double Precision Whetstones: 5000.0 MIPS
  59.  
  60. real 0m2.265s
  61. user 0m2.264s
  62. sys 0m0.000s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement