logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: logging-log4j/tests/src/java/org/apache/log4j/performance Loop.java
Date Thu, 30 Sep 2004 08:59:50 GMT
ceki        2004/09/30 01:59:50

  Modified:    tests/src/java/org/apache/log4j/html Loop.java
               tests/src/java/org/apache/log4j/performance Loop.java
  Log:
  - In tests/o.a.html.Loop close HTMLAppender at the end of the loop.
  
  - In tests/o.a.performance.Loop commented out memory printing calls.
  
  Revision  Changes    Path
  1.2       +1 -0      logging-log4j/tests/src/java/org/apache/log4j/html/Loop.java
  
  Index: Loop.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/tests/src/java/org/apache/log4j/html/Loop.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Loop.java	14 Sep 2004 15:41:42 -0000	1.1
  +++ Loop.java	30 Sep 2004 08:59:50 -0000	1.2
  @@ -42,6 +42,7 @@
       root.addAppender(appender);
   
       loop(200);
  +    appender.close();
     }
   
     static void loop(int len) {
  
  
  
  1.5       +6 -6      logging-log4j/tests/src/java/org/apache/log4j/performance/Loop.java
  
  Index: Loop.java
  ===================================================================
  RCS file: /home/cvs/logging-log4j/tests/src/java/org/apache/log4j/performance/Loop.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Loop.java	10 Sep 2004 14:57:24 -0000	1.4
  +++ Loop.java	30 Sep 2004 08:59:50 -0000	1.5
  @@ -49,9 +49,9 @@
         usage("Wrong number of arguments.");
       }
   
  -    memPrint();
  +    //memPrint();
       loop(1000, logger, "Some fix message of medium length.");
  -    memPrint();
  +    //memPrint();
   
       long res = loop(runLength, logger, "Some fix message of medium length.");
       double average = (res * 1000.0) / runLength;
  @@ -59,7 +59,7 @@
         "Loop completed in [" + res + "] milliseconds, or [" + average
         + "] microseconds per log.");
   
  -    memPrint();
  +    //memPrint();
     }
   
     static void usage(String msg) {
  @@ -92,9 +92,9 @@
       long before = System.currentTimeMillis();
       for (int i = 0; i < len; i++) {
         logger.debug(msg);
  -      if(i == 1000) {
  -        memPrint();
  -      }
  +      //if(i == 1000) {
  +        //memPrint();
  +      //}
       }
       return (System.currentTimeMillis() - before);
     }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message