You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2009/04/07 10:04:49 UTC

Re: svn commit: r762633 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/ main/java/org/apache/camel/impl/ test/java/org/apache/camel/processor/

>  public class RoutePerformanceTest extends ContextTestSupport {
> +    private static final Log LOG = LogFactory.getLog(RoutePerformanceTest.class);
>
>     protected SimpleDataSet dataSet = new SimpleDataSet(1000);
>
> @@ -44,8 +47,8 @@
>
>         long delta = System.nanoTime() - start;
>
> -        System.out.println("Took: " + delta + " ns");
> -        System.out.println("Took: " + delta / 1000000 + " millis");
> +        LOG.debug("Took: " + delta + " ns");
> +        LOG.debug("Took: " + delta / 1000000 + " millis");
>     }

Can we keep this at System.out or maybe INFO logging level, or
whatever it takes to let it output by default when you run mvn
test/install?

I used it as a quick glimpse to see if it runs at the usual
perforamance level, eg < 4 sec on my laptop.
When we had that performance degrade in Camel 1.6.0 this tests would
take x10 but most of the other tests runs at usual speed.

So its q quick indicator if something is wrong if it suddenly takes
longer/much longer time.




-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration