Skip to content
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

Add performance benchmark #56

Open
pickfire opened this issue Mar 6, 2023 · 2 comments
Open

Add performance benchmark #56

pickfire opened this issue Mar 6, 2023 · 2 comments

Comments

@pickfire
Copy link

pickfire commented Mar 6, 2023

Some says that calling python from rust is faster than running python code directly. https://users.rust-lang.org/t/why-calling-python-from-rust-is-faster-than-python/39789

Even though it's not a fair comparison, maybe we can see how much faster is it?

@m-ou-se
Copy link
Member

m-ou-se commented Mar 6, 2023

It basically comes down to just the difference between a .py and .pyc file, since inline-python compiles the Python code to Python bytecode at (Rust) compile time. There is probably plenty of information already out there about .py vs .pyc files.

@pickfire
Copy link
Author

pickfire commented Mar 8, 2023

Should we mention this in the readme?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants