Demonstration speed gain of caching

In an effort to quantify the speed gain of the cached mean example
provided by Roger Peng, a demonstration is set up here.