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

Speed up test for MD5 implementation equivalence #290

Conversation

BiggerNoise
Copy link
Member

Test was performing 1M iterations over a 10K byte field. This was taking
60-90s depending on the machine. I dropped this to 2K iterations.

Test was performing 1M iterations over a 10K byte field. This was taking
60-90s depending on the machine. I dropped this to 2K iterations.
@BiggerNoise
Copy link
Member Author

Fixes #289

@BiggerNoise BiggerNoise merged commit 956ead9 into chucknorris:master Oct 27, 2017
@BiggerNoise BiggerNoise deleted the bugfix/fix-really-really-ridiculously-long-md5-equivalence-test branch October 27, 2017 00:05
@@ -55,7 +55,7 @@ public void should_be_able_to_pass_text_and_get_back_a_base_64_hash_of_the_text(
[TestFixture]
public class when_using_an_unofficial_md5_implementation
{
const int passes = 1000000;
const int passes = 2000;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice perf improvement! ;)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to sweat for days micro-optimizing that code. Anything for my peeps.

@erikbra erikbra added this to the 0.9.0 milestone Nov 13, 2017
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