79316415

Date: 2024-12-29 21:58:41
Score: 1
Natty:
Report link

Your approach is fine.

Instead of three seperate cases you could also use this, which is not better but just another way of doing it:

EMAT = (L1 hit rate × L1 time) + 
   (L1 miss rate × L2 hit rate × L2 time) + 
   (L1 miss rate × L2 miss rate × full miss penalty)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: codenz