1 Answer
+ 1
Yes, c++ is generally faster than Python. In almost everything c++ is faster.
Obviously you could write algorithms poorly in any language and doing so in c++ could make it lose an unfair comparison with Python. There are unusual cases where Python could sort of beat c++ with generally good implementations in both too. If your Python implementation used CUDA as in PyCUDA, your Python code would be taking advantage of graphics cards and GPU's. If you compared the performance of PyCUDA code with a CPU-based version implemented with c++, your PyCUDA calculations would perform multiples faster.