Return-Path: Delivered-To: apmail-camel-commits-archive@www.apache.org Received: (qmail 21010 invoked from network); 10 Aug 2009 09:45:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 09:45:20 -0000 Received: (qmail 21061 invoked by uid 500); 10 Aug 2009 09:45:28 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 21035 invoked by uid 500); 10 Aug 2009 09:45:28 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 21026 invoked by uid 99); 10 Aug 2009 09:45:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 09:45:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 09:45:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E56992388892; Mon, 10 Aug 2009 09:45:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r802706 - /camel/sandbox/tuning-experiment/components/camel-jms/src/test/java/org/apache/camel/component/jms/tuning/PerformanceRouteCountTest.java Date: Mon, 10 Aug 2009 09:45:03 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090810094503.E56992388892@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davsclaus Date: Mon Aug 10 09:45:03 2009 New Revision: 802706 URL: http://svn.apache.org/viewvc?rev=802706&view=rev Log: tuning experiment Modified: camel/sandbox/tuning-experiment/components/camel-jms/src/test/java/org/apache/camel/component/jms/tuning/PerformanceRouteCountTest.java Modified: camel/sandbox/tuning-experiment/components/camel-jms/src/test/java/org/apache/camel/component/jms/tuning/PerformanceRouteCountTest.java URL: http://svn.apache.org/viewvc/camel/sandbox/tuning-experiment/components/camel-jms/src/test/java/org/apache/camel/component/jms/tuning/PerformanceRouteCountTest.java?rev=802706&r1=802705&r2=802706&view=diff ============================================================================== --- camel/sandbox/tuning-experiment/components/camel-jms/src/test/java/org/apache/camel/component/jms/tuning/PerformanceRouteCountTest.java (original) +++ camel/sandbox/tuning-experiment/components/camel-jms/src/test/java/org/apache/camel/component/jms/tuning/PerformanceRouteCountTest.java Mon Aug 10 09:45:03 2009 @@ -38,7 +38,7 @@ private AtomicInteger bronze = new AtomicInteger(); private AtomicInteger audit = new AtomicInteger(); - private int size = 1000; + private int size = 5000; @Test public void testPerformance() throws Exception { @@ -66,10 +66,10 @@ // give time to finish Thread.sleep(1000); - System.out.println("gold " + gold.intValue()); - System.out.println("silver " + silver.intValue()); - System.out.println("bronze " + bronze.intValue()); - System.out.println("audit " + audit.intValue()); +// System.out.println("gold " + gold.intValue()); +// System.out.println("silver " + silver.intValue()); +// System.out.println("bronze " + bronze.intValue()); +// System.out.println("audit " + audit.intValue()); } private boolean canRunOnThisPlatform() { @@ -93,7 +93,7 @@ @Override public void configure() throws Exception { from("activemq:queue:inbox?concurrentConsumers=10") - .wireTap("activemq:topic:audit") + .to("activemq:topic:audit") .choice() .when(header("type").isEqualTo("gold")) .to("direct:gold") @@ -111,7 +111,6 @@ }); from("direct:silver") - .delay(5) .process(new Processor() { public void process(Exchange exchange) throws Exception { silver.incrementAndGet(); @@ -119,7 +118,6 @@ }); from("direct:bronze") - .delay(10) .process(new Processor() { public void process(Exchange exchange) throws Exception { bronze.incrementAndGet();