Jim Meyering wrote:
[EMAIL PROTECTED] 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
--


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to