Skip to content

Add performance benchmark #56

Description

@pickfire

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?

Activity

  1. m-ou-se commented on Mar 6, 2023

    @m-ou-se
    Owner

    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.

  2. pickfire commented on Mar 8, 2023

    @pickfire
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions