This is a nice, easy to reproduce comparison of code. However, there are a couple of improvements to the R…