Hi All,

Finally my app is all ready, so I have started to do some performance
testing. Firstly let me tell you the functionality end-to-end. The
application i had to write based on our user requirements was to put a
Processing instruction tag before any element that needed to be encrypted,
so i wrote some helper class to identify processing instruction tag and then
take the qname of next element and assume that this is suppose to be
encrypted. The user that will be using this application will have no
knowledge of java/xml so thats the reason i had to take this approach.
Further I had to select StAX with encryption because sometimes files that
are passed are very big. So below is the end to end flow.

1. XML message arrives at JMS Queue
2. Message gets picked up
3. timer start to calculate the performance of encryption.
4. encryptwithstax method is called
5. timer stops to check start and end time of encryption.
6. Encrypted message is put on JMS Queue for downstream system.
7. downstream system picks up the message
8. timer starts to calculate the decryption time.
9. decryptwithStax method is called.
10. timer stops.

When i ran about 1000 messages for xml file of size 439 bytes both
encryption and decryption were very fast, to be precise the average
encryption time to encrypt one element was 0.0037187870847 secs, and to
decrypt it was 0.0268766103982.

But the system I am writing this app for occasionally gets messages of about
size 1mb. So when i ran this again with 1mb file, although encryption was
still reasonable (avg time was 0.409718753283 sec) but decryption was very
slow on an average it took every file 79.184482710915 secs to decrypt!

I am not sure why decryption is taking so much time for 1mb file when
compared to encryption, i have realized few things:
1. it does matter which tag we are encrypting i mean if it is a first tag of
the big xml than things were relatively faster.

It would be helpful if you can provide some pointers or let me know if you
think that the time taken for decryption 79 secs was still good given the
file size as 1mb.

Thanks a lot!
Regards,
Mujahed



--
View this message in context: 
http://apache-xml-project.6118.n7.nabble.com/Performance-Testing-tp41389.html
Sent from the Apache XML - Security - Dev mailing list archive at Nabble.com.

Reply via email to