Return-Path: X-Original-To: apmail-santuario-dev-archive@www.apache.org Delivered-To: apmail-santuario-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B268C11DC6 for ; Wed, 20 Aug 2014 09:56:44 +0000 (UTC) Received: (qmail 96464 invoked by uid 500); 20 Aug 2014 09:56:44 -0000 Delivered-To: apmail-santuario-dev-archive@santuario.apache.org Received: (qmail 96433 invoked by uid 500); 20 Aug 2014 09:56:44 -0000 Mailing-List: contact dev-help@santuario.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@santuario.apache.org Delivered-To: mailing list dev@santuario.apache.org Received: (qmail 96423 invoked by uid 99); 20 Aug 2014 09:56:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 09:56:44 +0000 X-ASF-Spam-Status: No, hits=1.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of msyed1983@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 09:56:40 +0000 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XK2ct-0001Yx-KN for dev@santuario.apache.org; Wed, 20 Aug 2014 02:56:19 -0700 Date: Wed, 20 Aug 2014 02:56:19 -0700 (PDT) From: mujahedsyed To: dev@santuario.apache.org Message-ID: <1408528579614-41391.post@n7.nabble.com> In-Reply-To: <20140819201839.2dae1e03@mgi.gigerstyle.ch> References: <1408444312969-41389.post@n7.nabble.com> <20140819201839.2dae1e03@mgi.gigerstyle.ch> Subject: Re: Performance Testing MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Marc, Thank you very much for the reply, I am really surprised with the processing speed you are able to achieve. I am preparing a small app and will post it here soon. regarding your questions: "/Which JRE, App-Container and StAX parser are you using? /" 1. I used both JDK 6, 7. 7 was slightly faster but still the minimum speed i was able to achieve was around 60 secs. 2. App-Container: I ran the application in Mule ESB Container and as a standalone application in spring. Running on spring was slightly faster. 3. StAX parser: I referred to the test case decryptUsingStAX (https://github.com/coheigea/testcases/blob/master/apache/santuario/santuario-xml-encryption/src/test/java/org/apache/coheigea/santuario/xmlencryption/EncryptionUtils.java) and tried to write something similar below is a detailed explanation, i think the problem could be that I am creating a dom object in decrypton: My encryption was able to return a bytearrayoutputstream (baos) because the class OutboundXMLSec had a processOutMessage which takes baos parameter here is the code for encrypt which works superbly fast: Now, decrypting with stax wont be able to return baos and it is returning Document object, it's not able to do that because the InboundXMLSec classes's processInMessage is not taking baos or there is no such overloaded method available as we have in OutboundXMLSec. the code for my decrypt looks like this: I may be wrong but I think because this document is getting created in memory and we know that dom is usually memory intensive operation it might have been cause of the issue. Can I ask: 1. in my decrypt method I tried to use OutboundXMLSec classes and passed the encrypted stream to processInMessage but it didn't like it, I think the purpose of OutboundXMLSec is to encrypt only. is this true? 2. Can I use OutboundXMLSec in decryption and return decrypted xml as baos? 3. If I have to use only InboundXMLSec for decryption than how can i achieve streaming? 4. does my explanation for decryptwithstax method regarding document object creation and it's cause to impact performance make sense? I am preparing sample app will post here, thanks very much for your help, much appreciated. Regards Mujahed -- View this message in context: http://apache-xml-project.6118.n7.nabble.com/Performance-Testing-tp41389p41391.html Sent from the Apache XML - Security - Dev mailing list archive at Nabble.com.