Program speed Python vs Matlab

Typically: "How do I... ", "How can I... " questions
Post Reply
xuehonghu
Posts: 14
Joined: 06 Mar 2019, 15:19

Program speed Python vs Matlab

Post by xuehonghu »

Hi,
I am recently trying two exact same programs one in MATLAB, the other in Python and using them as remote API control. However, I spot a significant speed contrast. MATLAB finishes within 8s, whereas python 30s. The program(inverse-kinematics) has the following feature : It goes through 6800 iterations, where in each iteration, it reads the joint angular value and resets a new value to it. (The other part of the program is not computationally intensive) I just would like to make sure whether it is the case that using python as remote control is slower than MATLAB?
Thanks!

xuehonghu
Posts: 14
Joined: 06 Mar 2019, 15:19

Re: Program speed Python vs Matlab

Post by xuehonghu »

Sorry, I was myself wrong, actually, python was lagging behind due to the computation part instead of the frequent operation of getjointposition and setjointposition.

Post Reply