To learn more about what makes a program work well, read Structure and Interpretation of Computer Programs [2]. It's not about gigahertz and cache memories; but it's about how you think about your programs to make them work well.