02-04-2013, 09:50 AM
Worked on this a little bit more and came up with another version that is ~ 45% faster, still without using SIMD.
http://bindshell.nl/pub/md5substr_mt2.c
http://bindshell.nl/pub/md5substr_mt2.c
Code:
epixoip@db:~$ ./md5substr2 aaaaaaaa
Using 16 threads.
Elapsed: 12s Progress: 1482700000/377149515625 (0.4%), Speed: 123.6 M/s
aaaaaaaa:8*pU]]
epixoip@db:~$ ./md5substr2 deadbeef
Using 16 threads.
Elapsed: 27s Progress: 3336900000/377149515625 (0.9%), Speed: 123.6 M/s
deadbeef:L,ud<P
epixoip@db:~$ ./md5substr2 deadface
Using 16 threads.
Elapsed: 26s Progress: 3212500000/377149515625 (0.9%), Speed: 123.6 M/s
deadface:V,l?,E
epixoip@db:~$ ./md5substr2 deadfa11
Using 16 threads.
Elapsed: 27s Progress: 3335700000/377149515625 (0.9%), Speed: 123.5 M/s
deadfa11:G,vzY;
epixoip@db:~$ ./md5substr2 cafebabe
Using 16 threads.
Elapsed: 26s Progress: 3211900000/377149515625 (0.9%), Speed: 123.5 M/s
cafebabe:t,gr>N
epixoip@db:~$ ./md5substr2 ffffffff
Using 16 threads.
Elapsed: 32s Progress: 3953500000/377149515625 (1.0%), Speed: 123.5 M/s
ffffffff:e-\1Go