Are you running the unit test several times in a loop within the same JVM. There is a big overhead to setting up things like SecureRandom and the Apache XML-Security seems to take a while to initialize (probably has SecureRandom as well). If you call it several times and time the last call then I'm sure it will be a lot less than 5 seconds.

Pete

Fang Jian wrote:
Thanks, Dustin.

Yes, I use BountyCastle provider. The time includes
the whole WSS4J handler processing time. The following
message is encrypted and signed:

     <soapenv:Body>
        <ns2:addNumbers xmlns:ns2="http://jtv.com">
            <number1>10</number1>
            <number2>20</number2>
        </ns2:addNumbers>
    </soapenv:Body>

It took 5281ms for my linux box (Dell latitude D610)
in my unit test. It seems not practical for real
system design. Thus, I really like to know the general
speed performance of WSS4J + Apache XML security. 

Thanks,

Jian

--- Dustin Breese <[EMAIL PROTECTED]> wrote:

  
This may be a dumb question since I'm new to the
group (and WS
security overall), but doesn't a lot depend on which
JCE provider you
are using?  For example, if you are using
BountyCastle or some other
provider?

Also, does your timing include setting up the
engine?  Are you
encrypting the entire SOAP body or just parts of it?

-Dustin

On 10/13/05, Fang Jian <[EMAIL PROTECTED]> wrote:
    
Hi,

I tested the encryption with RSA and the signature
with RSA-SHA1. It seems to me that the processing
speed is really slow. For encryption, it can take
      
up
    
to 4~5 seconds to encrypt the soap message body.

Since speed performance is critical to real
      
system. I
    
would like to know if there are any deployed real
systems that utilize WSS4J. How is the speed
performance? Is there any way to improve the speed
performance?

Thanks in advance,

Jian



__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/


      
---------------------------------------------------------------------
  
To unsubscribe, e-mail:
      
[EMAIL PROTECTED]
    
For additional commands, e-mail:
      
[EMAIL PROTECTED]
    
      



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to