How can caching improve performance and how do I test it?

How can caching improve performance and how do I test it?