-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python solve is faster than C code-generated one #110
Comments
Do you have the same compiler optimization flags enabled in both cases? |
I just ran the Python code normally from I did not modify anything in the generated CMakeLists.txt.
But I do see this in
|
By Python do you mean just calling |
@imciner2 |
Hi,
I ran the quadrotor example in Python and generated C code in the standard way. I noticed that it intentionally generated code with an EMBEDDED flag then I have to use
time.h
to measure the solve time of theosqp_solve(&workspace)
function.Both Python and C gave me the same results but the solve times are unexpected. Python one is like 1ms and C one is like 3ms. I don't really get why this happened. Did anyone see this problem before?
Thanks.
The text was updated successfully, but these errors were encountered: