RAM:
More RAM does not make anything faster, but insufficient RAM will slow you down. Just like more gasoline won't make your car faster, but too little can have an adverse effect...
The issue is that RAM access is much faster than disk access so cached data will appear faster with more RAM (versus the sloooww process of retrieving data from disk).
Also, large programs or data files will need to be swapped to disk if insufficient RAM is available...this hurts performance considerably.
Processor and Bus Speeds:
Just like the horsepower and torque of an engine makes a car go faster, higher processor speeds and bus speeds mean a faster
computer.
CPU Cache:
These L1/L2 Caches are simply very fast RAM that's part of the processor...instead of having the processor access main RAM memory to get commonly used instructions, it uses it's very fast cache to get those instructions. L1 cache is ultra-fast and is part of the processor, L2 cache is on the motherboard.
Overall, with respect to getting the most performance, it's all about figuring out what the bottleneck is, based on what applications you are running.
Some graphics applications, for example, may not need the fastest processor on the planet, but may need the best video card you can buy.
Similarly a computer that's a Web server needs lots of RAM, lots of Bus speed and throughput on the disk and network subsystem, but it does not need any special video hardware, and the processing speed of the box is not super critical, for many common web applications.