A little of coordination for Rosettacode

bearophile bearophileHUGS at lycos.com
Tue Jul 16 17:38:50 PDT 2013


> OK, the code now works :-)

And the results are a bit hilarious:


...>md5_implementation5_dmd
md5  digest("")  = D41D8CD98F00B204E9800998ECF8427E
zmd5 digest("")  = D41D8CD98F00B204E9800998ECF8427E

Test performance / message size 200MBytes
digest(data) = F083432AB71F6177A8EC2CA5157F7B83
std.md5:    16.59 M/sec  (    12.05 secs)
digest(data) = F083432AB71F6177A8EC2CA5157F7B83
zmd5   :    81.90 M/sec  (     2.44 secs)



...>md5_implementation5_ldc
md5  digest("")  = D41D8CD98F00B204E9800998ECF8427E
zmd5 digest("")  = D41D8CD98F00B204E9800998ECF8427E

Test performance / message size 200MBytes
digest(data) = F083432AB71F6177A8EC2CA5157F7B83
std.md5:   112.36 M/sec  (     1.78 secs)
digest(data) = F083432AB71F6177A8EC2CA5157F7B83
zmd5   :    98.18 M/sec  (     2.04 secs)


The zmd5 version is generated asm with a small part in D. LDC2 
compiles the standard D version even better... :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list