Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Benchmark and optimize digests #64

Closed
izaera opened this issue Feb 25, 2014 · 4 comments
Closed

Benchmark and optimize digests #64

izaera opened this issue Feb 25, 2014 · 4 comments
Assignees
Milestone

Comments

@izaera
Copy link
Collaborator

izaera commented Feb 25, 2014

Right now MD5 runs at 1.11 KB/s in a Mac with i7 and 8 cores :-(.

@izaera izaera added this to the next milestone Feb 25, 2014
@izaera
Copy link
Collaborator Author

izaera commented Feb 25, 2014

AES gives: 19,79 MB/s

Something must be very wrong with digests.

@izaera izaera self-assigned this Feb 26, 2014
@izaera
Copy link
Collaborator Author

izaera commented Feb 26, 2014

It was not the digest, but the fixed arithmetic. See this boring discussion in misc-dart:

https://groups.google.com/a/dartlang.org/forum/#!topic/misc/FhxVVywbBeo

What I'll do is to rewrite UintX probably to static functions that control overflow instead of classes. This should give a great performance boost like in AES.

In the meantime, I will upload a 0.6.1 version with patched UintX to get a better performance and make digests at least usable (though slow).

I will also create some benchmarks (in addition to tests) using the benchmark harness.

izaera pushed a commit that referenced this issue Mar 17, 2014
izaera pushed a commit that referenced this issue Mar 18, 2014
izaera pushed a commit that referenced this issue Mar 18, 2014
izaera pushed a commit that referenced this issue Mar 20, 2014
izaera pushed a commit that referenced this issue Mar 20, 2014
izaera pushed a commit that referenced this issue Mar 20, 2014
izaera pushed a commit that referenced this issue Mar 21, 2014
izaera pushed a commit that referenced this issue Mar 21, 2014
izaera pushed a commit that referenced this issue Mar 21, 2014
izaera pushed a commit that referenced this issue Mar 21, 2014
@izaera
Copy link
Collaborator Author

izaera commented Mar 21, 2014

Optimization finished

@stevenroose
Copy link
Contributor

This issue was moved to PointyCastle/pointycastle#64

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants