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

Performance / Benchmark #54

Open
jbirnick opened this issue Oct 19, 2024 · 1 comment
Open

Performance / Benchmark #54

jbirnick opened this issue Oct 19, 2024 · 1 comment

Comments

@jbirnick
Copy link

Hey, I'm about to implement an algorithm where arbitrary-precision floats (and ints) are at the heart.

That's why I'm currently looking for the best library to use for that. In particular, I'm still deciding whether I should use Rust or C++. I would prefer Rust, but if the Rust libraries are not there yet than I have no choice but to use C++.

I found your library and it looks interesting! I saw that you wrote that efficiency is only the second focus. That's fine, but I would be interested if you have an idea of how it (and maybe even how rug and asto-float) compares to GMP and MPFR?

I couldn't find any benchmarks, and I would just be interested in the order of magnitude of how much efficiency I would have to give up.

@cmpute
Copy link
Owner

cmpute commented Oct 23, 2024

I haven't implemented a fair comparison for float arithmetics, but I would say the library is currently roughly 2x - 5x slower than MPFR, depending on what operations you want to use.

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