How to produce the cpu cache effect in C and java?

后端 未结 5 1078
情话喂你
情话喂你 2021-02-09 02:15

In Ulrich Drepper\'s paper What every programmer should know about memory, the 3rd part: CPU Caches, he shows a graph that shows the relationship between \"working set\" size an

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-09 03:00

    As you can see from graph 3.26 the Intel Core 2 shows hardly any jumps while reading (red line at the top of the graph). It is writing/copying where the jumps are clearly visible. Better to do a write test.

提交回复
热议问题