Skip to content

reduce unittest runtime #653

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

Merged
merged 1 commit into from
Jul 1, 2012
Merged

Conversation

MartinNowak
Copy link
Member

  • use random sampling of codepoint sets
  • save and print random seed for reproducibility
  • add new unittest for ByCodepoint
  • 12s => 4ms

- use random sampling of codepoint sets
- save and print random seed for reproducibility
- add new unittest for ByCodepoint
- 12s => 4ms
@DmitryOlshansky
Copy link
Member

Looks good. I was against always running this test in the first place (e.g. have it versioned out).
But random test + show the seed on failure is even better.

@MartinNowak
Copy link
Member Author

If effectively did 397 * 1.114.112 trie lookups because it iterated through the negated sets too. I tried some simple off by one bugs but they never went unnoticed with even one pass of random sampling.

jmdavis added a commit that referenced this pull request Jul 1, 2012
@jmdavis jmdavis merged commit 6d95b36 into dlang:master Jul 1, 2012
@jmdavis
Copy link
Member

jmdavis commented Jul 1, 2012

Merged.

@MartinNowak MartinNowak deleted the fasterInternalUniUT branch March 18, 2013 22:37
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

Successfully merging this pull request may close these issues.

3 participants