Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43F919538 for ; Wed, 28 Mar 2012 10:20:34 +0000 (UTC) Received: (qmail 99408 invoked by uid 500); 28 Mar 2012 10:20:33 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 99358 invoked by uid 500); 28 Mar 2012 10:20:33 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 99347 invoked by uid 99); 28 Mar 2012 10:20:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 10:20:33 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bk0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 10:20:26 +0000 Received: by bkwq16 with SMTP id q16so894456bkw.0 for ; Wed, 28 Mar 2012 03:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=eultjHlajzRiNcUPWWksQiTGbLqQBM22sI1z6WdvbaA=; b=Pm5gx1z2lxPu5CVr/MSvZGPaxWva+rASEBasZDPXdJKzf2/3A50k18UK8cFRwTwcDz 8E4S5qCZ0ziaXS0wNOnWEsYORxh2Upx+6okzQLU0dCV/Q13GB+EVXcZanc/O7j/JE1Zw JTtt+QGnr22JVve44V4GRzHJAnjPjmTScSvl2VFa/IXhDYHFpEgrYe9lckorCOpf3cW0 esy1tRld3CIo1Lee6vY5k1eMNF2IHmGwKI221dfaWFSXhwFbOprG3UKO8pf3I2Ac5acQ /Wp6QpoQrPw55ruxwGyemxhDfUaFIPH2hWMC1leHyWGfiI4s4h/0XITJZlX/u6qnE3KN VaWQ== Received: by 10.205.127.130 with SMTP id ha2mr11949325bkc.28.1332930005665; Wed, 28 Mar 2012 03:20:05 -0700 (PDT) Received: from [10.36.226.4] ([217.173.99.61]) by mx.google.com with ESMTPS id p19sm5475446bka.1.2012.03.28.03.20.04 (version=SSLv3 cipher=OTHER); Wed, 28 Mar 2012 03:20:05 -0700 (PDT) Message-ID: <4F72E5D4.5010906@gmail.com> Date: Wed, 28 Mar 2012 11:20:04 +0100 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 MIME-Version: 1.0 To: users@cxf.apache.org Subject: Re: CXF Test client for JAXB load testing References: <1332850152984-5597650.post@n5.nabble.com> <4F722B79.9040409@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Kiren On 28/03/12 10:33, Kiren Pillay wrote: > Hi Sergey! > > With your code I'm getting 13 ms average on my Tomcat server and 34ms on > Jetty maven plugin (I was actually expecting the opposite). > > Against the String response url I'm getting 4ms on Tomcat and 5ms on Jetty. > > I think now we're getting down to the level of differences in the quality > of our hardware, I've got an intel I5 (M 430 @ 2.27GHz) laptop with > plenty of RAM, you probably have a better machine. I'm running Java 7 > update 3 on a linux 64bit Ubuntu 11.10 machine. > I have I7 with few processors and plenty of memory, so that can explain some difference. Java6 & Ubuntu 11.04. Please try CXF 2.5.3-SNAPSHOT, that might help with saving few milliseconds too plus in case of JAXB - save on the pretty-printing 'expenses' which you already verified. What I think is that the server runtime is performing pretty well, the client runtimes have different qualities though and that can affect the performance measurements... Wonder how would JIXB perform :-) Cheers, Sergey > Regards > Kiren > > On Tue, Mar 27, 2012 at 11:04 PM, Sergey Beryozkinwrote: > >> Hi Kiren >> >> On 27/03/12 13:09, Kiren Pillay wrote: >> >>> Hi Sergey, >>> >>> Attached is a war file against which I am testing my client. >>> >> great, thanks >> >> >> The test URLS >>> are given below together with the Jamon stats for a 1000 hits. >>> >>> >>> 1. Large response (27k) >>> >>> url="http://localhost:8080/**RestTest/rest/test/long/27000 >>> "**; >>> JAMon Label=myCodeTimer, Units=ms.: (Hits=1000.0, Avg=7.77, Total=7770.0, >>> Min=4.0 >>> tps:128.5512276642242 >>> >>> 2. Small response >>> >>> url="http://localhost:8080/**RestTest/rest/test/short >>> "; >>> JAMon Label=myCodeTimer, Units=ms.: (Hits=1000.0, Avg=5.454, Total=5454.0, >>> Min=3.0, Max=37.0 >>> tps:183.0831197363603 >>> >>> 3. Dummy Response using the JAXB schema >>> >>> url="http://localhost:8080/**RestTest/rest/test/xml >>> "; >>> JAMon Label=myCodeTimer, Units=ms.: (Hits=1000.0, Avg=15.381, >>> Total=15381.0, >>> Min=9.0, Max=542.0, >>> tps:64.96037417175522 >>> >>> >> With the following code: >> >> WebClient wc = WebClient.create("http://**localhost:8080/RestTest/rest/** >> test/xml"); >> wc.accept("text/xml"); >> // warm up a bit >> for (int i = 0; i< 50; i++) { >> wc.get(); >> } >> >> long total = 0; >> for (int i = 0; i< 1000; i++) { >> long l1 = System.currentTimeMillis(); >> wc.get(Document.class); >> long l2 = System.currentTimeMillis(); >> >> total += l2-l1; >> } >> System.out.println("Average: " + total/1000); >> >> I'm getting 10 millisecs average. Note I'm adding a Document reading just >> to eliminate any optimizations with webClient.get() where no actual read is >> done. >> >> Running the same code against >> http://localhost:8080/**RestTest/rest/test/long/27000 >> >> (changing address, accept to text/plain, and wc.get(Document.class); to >> wc.get(String.class);) >> >> gives me 2 milliseconds average. >> >> >> Can you try the same code please ? >> >> Cheers, Sergey >> >> >> I've include our custom JAXB-enabled schema jar, the rest you can build >>> from >>> maven pom.xml. >>> >>> http://cxf.547215.n5.nabble.**com/file/n5597650/**RestWarProject.tar.gz >>> RestWarProject.tar.gz >>> >>> Custom JAXB schema file: >>> >>> http://cxf.547215.n5.nabble.**com/file/n5597650/pams-core-** >>> xsd-server-1.3.0_ba_nemo-**SNAPSHOT.jar >>> pams-core-xsd-server-1.3.0_ba_**nemo-SNAPSHOT.jar >>> >>> >>> Regards >>> Kiren >>> >>> >>> >>> >>> >>> -- >>> View this message in context: http://cxf.547215.n5.nabble.** >>> com/CXF-Test-client-for-JAXB-**load-testing-**tp5597650p5597650.html >>> Sent from the cxf-user mailing list archive at Nabble.com. >>> >> >> >> -- >> Sergey Beryozkin >> >> Talend Community Coders >> http://coders.talend.com/ >> >> Blog: http://sberyozkin.blogspot.com >> >