Skip to content

Performance figures? #5106

Closed as not planned
Closed as not planned

Description

@EricLBuehler

Hello everyone! I was looking at RustPython, but my cursory glance did not reveal any performance figures. Where can I find such figures?

Activity

  1. youknowone commented on Oct 30, 2023

    @youknowone
    Member

    Hello! We didn't publish any benchmark results. RustPython was 4x-20x slower than CPython in a few benchmarks.
    This is one of the latest benchmark: #4615 (comment)

  2. EricLBuehler commented on Oct 30, 2023

    @EricLBuehler
    Author

    Ok, thanks! I created a Python-like language, Merlin, and was able to achieve some decent performance (about 2x for a simple test case), but slower for more complicated test cases (not shown in the readme).

    Are there any ideas on why this performance deficit occurs? My (qualitative) experience optimizing Merlin indicated that the bounds checks Rust uses on each arithmetic operation, as well as other checks, causes the performance issue. I improved performance by using a register-based VM and unwrap_unchecked for options.

    Have there been any optimization efforts for RustPython? This seems like a really great project, and perhaps it can benefit from Rust's concurrency to become faster than CPython!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions