Making a gpg library

Werner Koch wk at
Tue Oct 24 11:30:05 CEST 2000


I did some tests on 10, 50 and 100 cleartext signatures created
using "fortune | gpg --clearsign".  The first column is for a shell
command running gpg on each file the second one is for "ls | gpg

real	0m1.777s         0m0.616s
user	0m1.580s         0m0.580s
sys	0m0.190s         0m0.040s

real	0m8.898s         0m2.573s
user	0m7.900s         0m2.490s
sys	0m0.970s         0m0.080s
real	0m17.724s        0m4.995s
user	0m15.850s        0m4.890s
sys	0m1.870s         0m0.110s

So indeed, there is a performance factor of 4 here.

This does mean that the wrapper library should not fork gpg for each
operation but run gpg in a loop.  Currently we are working on the
--edit functions and here we already have to use such a mechanism.
However this has nothing to do with the interface the wrapper
library will have to provide - it is just an optimization.


Werner Koch				GnuPG key:  621CC013
OpenIT GmbH                   

More information about the Gnupg-devel mailing list