|
From: | P |
Subject: | Re: digest algorithm performance |
Date: | Wed, 15 Jun 2005 17:00:26 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 |
Jim Meyering wrote:
address@hidden wrote:I haven't looked too deeply into this, so this is just a heads up.Yep. I mentioned that coreutils/TODO wrt md5sum: Look into improving the performance of md5sum. `openssl md5' is consistently about 30% faster than md5sum on an idle AMD 2000-XP system with plenty of RAM and a 261 MB input file. openssl's md5 implementation is in assembly, generated by a perl script. I suspect their sha1 code is similar. I'd welcome patches to improve the performance of either.
OK, I'll have a look. FreeBSD seems to be faster again, (don't compare these results to the previous mail): $time sha1 < 15MBfile 51e673b839d5bee3293fa2f1dd58c69face9770a real 0m0.128s user 0m0.126s sys 0m0.001s $time openssl sha1 < 15MBfile 51e673b839d5bee3293fa2f1dd58c69face9770a real 0m0.234s user 0m0.174s sys 0m0.048s -- Pádraig Brady - http://www.pixelbeat.org --
[Prev in Thread] | Current Thread | [Next in Thread] |