Skip to content

Performance figures? #5106

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

Closed
EricLBuehler opened this issue Oct 25, 2023 · 2 comments
Closed

Performance figures? #5106

EricLBuehler opened this issue Oct 25, 2023 · 2 comments

Comments

@EricLBuehler
Copy link

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

@youknowone
Copy link
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)

@EricLBuehler
Copy link
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!

@EricLBuehler EricLBuehler closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2023
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