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

Some tests are really slow #1757

Closed
kailuowang opened this issue Jul 6, 2017 · 2 comments
Closed

Some tests are really slow #1757

kailuowang opened this issue Jul 6, 2017 · 2 comments
Assignees

Comments

@kailuowang
Copy link
Contributor

kailuowang commented Jul 6, 2017

  • Cokleisli[NonEmptyList, Int, Int].arrow.compose associativity (23 seconds, 144 milliseconds)
  • Cokleisli[NonEmptyList, Int, Int].monoidK.semigroupK associative (22 seconds, 496 milliseconds)
  • Cokleisli[NonEmptyList, Int, Int].semigroupK.semigroupK associative (26 seconds, 5 milliseconds)
  • Traversing with ReaderWriterState is stack-safe (1 minute, 47 seconds)
  • StateT[ListWrapper, Int, Int].monadState.apply composition (32 seconds, 992 milliseconds)
  • StateT[ListWrapper, Int, Int].monadState.cartesian associativity (31 seconds, 908 milliseconds)
  • StateT[ListWrapper, Int, Int].monadState.flatMap associativity (20 seconds, 123 milliseconds)
  • StateT[ListWrapper, Int, Int].monad.apply composition (47 seconds, 880 milliseconds)
  • StateT[ListWrapper, Int, Int].monad.cartesian associativity (24 seconds, 700 milliseconds)
  • StateT[ListWrapper, Int, Int].monad.flatMap associativity (27 seconds, 404 milliseconds)
  • StateT[ListWrapper, Int, Int].monadCombine.apply composition (21 seconds, 939 milliseconds)
  • StateT[ListWrapper, Int, Int].monadCombine.cartesian associativity (28 seconds, 935 milliseconds)
  • StateT[ListWrapper, Int, Int].monadCombine.flatMap associativity (24 seconds, 395 milliseconds)
@kailuowang kailuowang changed the title Cokleisli's semigroupK instances seems to be rather slow. Some tests are really slow Jul 6, 2017
@peterneyens
Copy link
Collaborator

For the StateT[ListWrapper, ...] tests, maybe we can try limiting the size of the Lists which is what I think we are doing in WriterTTests.

@peterneyens
Copy link
Collaborator

Limiting the size range in StateTTests cuts the total time for StateTTests from around 4 minutes to around 20 seconds.

  implicit override val generatorDrivenConfig: PropertyCheckConfiguration =
    checkConfiguration.copy(sizeRange = 5)

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