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

cabal test takes Arbitrarily long #7

Open
joeyh opened this issue Sep 27, 2016 · 0 comments
Open

cabal test takes Arbitrarily long #7

joeyh opened this issue Sep 27, 2016 · 0 comments

Comments

@joeyh
Copy link
Contributor

joeyh commented Sep 27, 2016

The test suite seems to take a very long time to run. It's been observed running for at least several hours.

Looking at the code, arbitraryHashOptions will pick on average 2^31 iterations. 10000 iterations takes roughly 10 minutes on semi-modern hardware, so 2^31 iterations is in the ballpark of several years (depending on how much memory is used, number of threads, etc).

Probably makes sense to cap the number of iterations at some smaller amount.

(Seems like it could also pick an amount of memory to use that is excessive, although so far I have not seen the test suite use much memory.)

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

1 participant