It would be better to avoid using a mac for blender. Blender might not be able to run on it in the near future: macOS is deprecating openGL
Blender renders faster in linux and windows 7 than in windows 10. Since you are using ubuntu already, I recommend buying newer used hardware and running a linux distro on it. Maybe elementary os? Personally I like to use debian and the cinnamon desktop environment.