Performance prediction practice
- For a row-major 4-by-4 matrix of four-byte elements, list the first four addresses in each traversal relative to the base.
- Why does a matching row/column checksum alone still permit a shared bug?
- Can a zero CPU-time sample prove a traversal is free?
- Does a large column/row timing ratio establish the number of cache misses?
- Why compare 511 with 512, and why is that comparison not a clean proof of cache conflicts?
- If every tested case favors row traversal, must you invent a reversal to complete the lab?
- Row offsets 0,4,8,12; column offsets 0,16,32,48. Cache predictions need line/alignment assumptions.
- Both implementations can make the same mistake; compare against independent expected work.
- No, the sample may be below timer resolution.
- No; compiler, prefetch, TLB and other effects can contribute.
- It explores stride sensitivity, but also changes total data size and other interactions.
- No. State the observed scope, uncertainty and next experiment honestly.