bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] md5: accepts a new --threads option


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/test_files/*
> 09e00486b4fb88805f7261fac1dd4c7f0ee7640e  /tmp/test_files/a
> 203c0607c7ebff14ecf23b37005a714f2dc19b0b  /tmp/test_files/b
> 3f786850e387550fdab836ed7e6dc881de23001b  /tmp/test_files/c
> d7c8127a20a396cff08af086a1c695b0636f0c29  /tmp/test_files/d
> 
> real  0m1.804s
> 
> $ time find  /tmp/test_files/* | xargs -n4 -P2 ./sha1sum 
> 09e00486b4fb88805f7261fac1dd4c7f0ee7640e  /tmp/test_files/a
> 203c0607c7ebff14ecf23b37005a714f2dc19b0b  /tmp/test_files/b
> 3f786850e387550fdab836ed7e6dc881de23001b  /tmp/test_files/c
> d7c8127a20a396cff08af086a1c695b0636f0c29  /tmp/test_files/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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]