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

Rational benchmark #195

Open
Cherubin62 opened this issue Jun 21, 2019 · 5 comments
Open

Rational benchmark #195

Cherubin62 opened this issue Jun 21, 2019 · 5 comments
Assignees

Comments

@Cherubin62
Copy link

Add a new benchmarh dedicated to rational number type

@bluescarni
Copy link
Owner

What type of operations would you like to be benchmarked for the rational type?

@Cherubin62
Copy link
Author

Actually I would like to benchmark exact geometry based on rationals, as done with gmp in CGAL package. I was wondering if mp++ could compete favorably. This implies +,-,*,/ operations at least.

@bluescarni
Copy link
Owner

Ok, so benchmarking arithmetic operations against GMP's rational. What kind of limb/bit sizes are you normally using for numerator/denominator? Do your numbers usually fit, say, in 128bit of storage or do they need more?

@Cherubin62
Copy link
Author

128bit might be enough in a wide range of use cases. But, actually, exact geometry is only interesting in very degenerate cases, where more precision might be needed. To answer shortly, impossible to assert 128 bit will be enough in all cases.

@Cherubin62
Copy link
Author

By the way, I do really appreciate your interest in my problem and look forward to compare your mp++ vs gmp benchmark and, afterwards, gmp-based geometry vs. mp++-based geometry becnhmarks.

@bluescarni bluescarni self-assigned this Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants