• 0

Difference in speed/performance between cache and main memory


Question

Hello,

I'm trying to find a program that will show me the difference in speed and performance when using cache memory instead of main memory. Is there a way to do it? Is there a program that does that? I need this because I'm supposed to draw graphs and stuff like that for comparison between L2 Cache and memory.

I'm not even sure if I explained correctly, hopefully someone understood =).

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Thanks a lot fellow Neowinians. Any of you know how to write a program that explicitly use either L2 Cache or main memory? Thanks.

Link to comment
Share on other sites

  • 0
Thanks a lot fellow Neowinians. Any of you know how to write a program that explicitly use either L2 Cache or main memory? Thanks.

A lot of tight, CPU-intensive operations are written to fit their code and data into L1/L2 cache lines. This is mostly in multimedia apps like video encoding/decoding, or scientific/math/engineering apps like CFD and FEA simulations. It's not hard to write code that shows you the difference between cache and main memory. You just need to know how big your cache lines and write your code to take advantage of or avoid spacial locality depending on what you want to measure.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.