Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Version 1
  2.  
  3. Run 1
  4. Mem access count: 1088
  5. Cache hit count: 896
  6. Cache miss count: 192
  7. Cache Hit rate: 82%
  8.  
  9. Run 2
  10. Mem access count: 1088
  11. Cache hit count: 1039
  12. Cache miss count: 49
  13. Cache hit rate: 95%
  14.  
  15. Run 2 has a higher hit rate because of its word size, and there are 64 words in each array and 3 arrays => 3*64 = 192
  16. Run 2 performs better, because whenever another address with the same tag is requested where an
  17. item in the cache already exists, it allows the new value to be stored alongside the old one. When
  18. the old entry is requested from the cache, it hits.
  19.  
  20. Version 2
  21.  
  22. Run 1
  23. Mem access count: 1088
  24. Cache hit count: 788
  25. Cache miss count: 300
  26. Cache hit rate: 72%
  27.  
  28. Run 2
  29. Mem access count: 1088
  30. Cache hit count: 1037
  31. Cache miss count: 51
  32. Cache hit rate: 95%
  33.  
  34.  
  35.  
  36. Version 3
  37.  
  38. Mem access count: 8448
  39. Cache hit count: 7323
  40. Cache miss count: 1125
  41. Cache hit rate: 87%
  42.  
  43. Version 3a
  44.  
  45. Memory Access Count: 10240
  46. Cache hit count: 9494
  47. Cache miss count: 746
  48. Cache hit rate: 93%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement