Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2013
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. gcc -O3 testperf.c -o testperf
  2.  
  3. sb@sb:~$ gcc --version
  4. gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
  5.  
  6. sb@sb:~$ perf stat -r 10 ./testperf t
  7.  
  8. Performance counter stats for './testperf t' (10 runs):
  9.  
  10. 932,270792 task-clock (msec) # 1,000 CPUs utilized ( +- 0,17% )
  11. 79 context-switches # 0,085 K/sec ( +- 0,41% )
  12. 0 cpu-migrations # 0,000 K/sec ( +- 66,67% )
  13. 123 page-faults # 0,132 K/sec ( +- 0,08% )
  14. 2.503.934.829 cycles # 2,686 GHz ( +- 0,18% )
  15. 1.702.393.194 stalled-cycles-frontend # 67,99% frontend cycles idle ( +- 0,27% )
  16. <not supported> stalled-cycles-backend
  17. 2.401.558.621 instructions # 0,96 insns per cycle
  18. # 0,71 stalled cycles per insn ( +- 0,00% )
  19. 400.288.990 branches # 429,370 M/sec ( +- 0,00% )
  20. 8.275 branch-misses # 0,00% of all branches ( +- 2,67% )
  21.  
  22. 0,932290271 seconds time elapsed ( +- 0,17% )
  23.  
  24. sb@sb:~$ perf stat -r 10 ./testperf c
  25.  
  26. Performance counter stats for './testperf c' (10 runs):
  27.  
  28. 1023,259610 task-clock (msec) # 1,000 CPUs utilized ( +- 2,58% )
  29. 86 context-switches # 0,084 K/sec ( +- 2,36% )
  30. 0 cpu-migrations # 0,000 K/sec ( +- 44,72% )
  31. 123 page-faults # 0,120 K/sec
  32. 2.812.550.318 cycles # 2,749 GHz ( +- 0,04% )
  33. 817.018.494 stalled-cycles-frontend # 29,05% frontend cycles idle ( +- 0,28% )
  34. <not supported> stalled-cycles-backend
  35. 3.201.789.125 instructions # 1,14 insns per cycle
  36. # 0,26 stalled cycles per insn ( +- 0,00% )
  37. 1.200.349.135 branches # 1173,064 M/sec ( +- 0,00% )
  38. 9.322 branch-misses # 0,00% of all branches ( +- 4,57% )
  39.  
  40. 1,023239569 seconds time elapsed ( +- 2,58% )
  41.  
  42. sb@sb:~$ time ./testperf c
  43.  
  44. real 0m1.050s
  45. user 0m1.051s
  46. sys 0m0.000s
  47. sb@sb:~$ time ./testperf t
  48.  
  49. real 0m0.939s
  50. user 0m0.939s
  51. sys 0m0.000s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement