I just finished installing a desktop computer based on an AMD Ryzen 2700x and 32GB RAM (running Ubuntu 18.04). At work, I have a 3-year-old laptop workstation with an Intel i7-6820HQ and 16GB RAM (running Windows 10).
I installed Anaconda on both platforms and ran a custom Python code which relies heavily on basic numpy matrix operations. The code does not involve any GPU-specific computation (my work laptop does not have any). The Ryzen is running at 3.7GHz, the laptop i7 is running at 3.6GHz. Both systems have been fully updated.
To my surprise, the code runs in 5 minutes on my work laptop, while it requires 10 minutes on the Ryzen desktop!
The latest Ryzen 2700x is supposed to be much faster than a high-end 3-year-old laptop Intel processor, then why would it be 2x slower?
Is it due to Ubuntu being sub-optimal in some way as opposed to Windows 10 for the Ryzen?
Is it due to Intel being more adequate to Python simulations than AMD?
Anything else?
Thanks for your help in understanding what is going on.