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

Add benchmarks #18

Open
chshersh opened this issue Apr 22, 2019 · 4 comments
Open

Add benchmarks #18

chshersh opened this issue Apr 22, 2019 · 4 comments
Labels
benchmarks Hacktoberfest https://hacktoberfest.digitalocean.com/

Comments

@chshersh
Copy link
Contributor

Compare with fingertree package:

@JulStrat
Copy link

JulStrat commented Jun 1, 2019

Hello @chshersh.

Can you test your TREAP implementation (if possible) on real problems bellow?

https://www.spoj.com/problems/SDITSBST/
https://www.spoj.com/problems/SDITSAVL/
https://www.spoj.com/problems/ALLIN1/

It would be great for Haskell (and not only, I coded Treap in Pascal) community.

Thanks.

Best regards.
Julian (julkas[at]spoj[dot]com).

@chshersh
Copy link
Contributor Author

chshersh commented Jun 2, 2019

@JulStrat Thanks for the idea. I don't have capacity at the moment for solving problems on a particular platform. And this probably won't be that straightforward because problem-solving platforms usually don't support all libraries from Hackage.

But I'm happy to help if somebody is willing to test my implementation!

@JulStrat
Copy link

JulStrat commented Jun 2, 2019

Hello @chshersh.

I don't have capacity at the moment for solving problems on a particular platform.

It's OK!

What about relative test (benchmark) your Treap vs Standard Haskell Set implementation on random 64-bit integers (100000, 1000000 random 64-bit keys)?

Regards.
Julian.

@chshersh
Copy link
Contributor Author

chshersh commented Jun 5, 2019

@JulStrat This issue is exactly about implementing relative benchmarks. However, Set doesn't provide the same interface as Treap so it's not fair to compare against Set. The closest data structure is FingerTree implemented in either fingertree or hw-fingertree package.

@chshersh chshersh added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmarks Hacktoberfest https://hacktoberfest.digitalocean.com/
Projects
None yet
Development

No branches or pull requests

2 participants