Page 1 of 1

30x perfomance difference between PyBullet and Bullet3

Posted: Sat Oct 02, 2021 10:10 am
by Mark97
I've just ran the benchmark of 3000 cubes in Bullet3 (using Visual Studio), and found a total step time of about 7 ms. (4 threads)
I've copied the C++ code and translated it into Python code, and ran 3000 standard cubes in PyBullet (using Anaconda Navigator, Notebook), and found a total step time of about 200 ms. (single thread probably)

That is a performance difference of about 30x. That is a big difference. Therefore I would like to check if others have found the same performance difference, or if PyBullet can be sped up in any way.

Re: 30x perfomance difference between PyBullet and Bullet3

Posted: Sat Oct 23, 2021 5:22 pm
by KKlouzal
While I wont say it isn't possible to speed up computation of PyBullet, I will say it should be expected that it underperforms compared to Bullet3. Python is an abstraction layer atop C/C++ so there will be overhead.