Re: [PATCH] md5: accepts a new --threads option (original) (raw)

[Top][All Lists]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Pádraig Brady
Subject: Re: [PATCH] md5: accepts a new --threads option
Date: Sun, 18 Oct 2009 13:01:22 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Giuseppe Scrivano wrote:

I created four files: a' and b' are 150Mb, differently c' and d' are few Kb. These are the results I get:

$ time ./sha1sum --threads /tmp/testfiles/* 09e00486b4fb88805f7261fac1dd4c7f0ee7640e /tmp/testfiles/a 203c0607c7ebff14ecf23b37005a714f2dc19b0b /tmp/testfiles/b 3f786850e387550fdab836ed7e6dc881de23001b /tmp/testfiles/c d7c8127a20a396cff08af086a1c695b0636f0c29 /tmp/testfiles/d

real 0m1.804s

$ time find /tmp/testfiles/* | xargs -n4 -P2 ./sha1sum 09e00486b4fb88805f7261fac1dd4c7f0ee7640e /tmp/testfiles/a 203c0607c7ebff14ecf23b37005a714f2dc19b0b /tmp/testfiles/b 3f786850e387550fdab836ed7e6dc881de23001b /tmp/testfiles/c d7c8127a20a396cff08af086a1c695b0636f0c29 /tmp/testfiles/d

real 0m3.288s

With -n4 only 1 process would be started. Could you repeat with -n1 please for comparison. One would only need to increase -n for large numbers of files.

thanks, Pádraig.