RAM has no impact on any of the rendering speeds. The main roles are the CPU and GPU. However, you can see a shift in rendering speeds if your machine doesn't have enough RAM — say 4 GB — and if you raise it to 16 GB.