You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ce...@apache.org on 2004/09/30 11:01:13 UTC

cvs commit: logging-log4j/tests/resources/history kal0.txt kal1.txt kal2.txt kal.txt

ceki        2004/09/30 02:01:13

  Added:       tests/resources/history kal0.txt kal1.txt kal2.txt
  Removed:     tests/resources/history kal.txt
  Log:
  More performance test results on my machine.
  
  Revision  Changes    Path
  1.1                  logging-log4j/tests/resources/history/kal0.txt
  
  Index: kal0.txt
  ===================================================================
  KAL is an Intel Pentium 4 clocked at 2.53 GHz running XP and Sun's JDK 1.4.1.
  
  Results are in microseconds.
  
  NullAppender:
  
  NullAppender:
  
      4.11 PatternLayout "%p - %m%n"
      4.11 PatternLayout "%-5p - %m%n"
     13.52 PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"
     11.02 PatternLayout "%r [%t] %-5p %.10c %x - %m%n"
     11.72 PatternLayout "%r [%t] %-5p %.20c %x - %m%n"
     10.01 PatternLayout "%r [%t] %-5p %c - %m%n"
     18.53 PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"
     18.83 PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
    127.18 PatternLayout "%l - %m%n"
    142.61 PatternLayout "%C.%M.%L - %m%n"
  
  FileAppender:
  
     10.82 PatternLayout "%p - %m%n"					   
     11.82 PatternLayout "%-5p - %m%n"					   
     20.53 PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
     19.03 PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
     19.63 PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
     17.53 PatternLayout "%r [%t] %-5p %c - %m%n"				   
     28.74 PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
     29.14 PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
    162.13 PatternLayout "%l - %m%n"					   
    198.69 PatternLayout "%C.%M.%L - %m%n"                                     
  
  FileAppender: (ImmediateFlush=false)
  
     6.31  PatternLayout "%p - %m%n"					   
     6.01  PatternLayout "%-5p - %m%n"					   
    14.42  PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
    14.22  PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
    14.42  PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
    13.02  PatternLayout "%r [%t] %-5p %c - %m%n"				   
    23.13  PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
    23.53  PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
   147.51  PatternLayout "%l - %m%n"					   
   166.04  PatternLayout "%C.%M.%L - %m%n"                                     
  
  FileAppender: (BufferedIO=true)
  
     5.81 PatternLayout "%p - %m%n"					   
     5.81 PatternLayout "%-5p - %m%n"					   
    14.12 PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
    14.22 PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
    13.92 PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
    12.82 PatternLayout "%r [%t] %-5p %c - %m%n"				   
    22.73 PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
    23.23 PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
   149.73 PatternLayout "%l - %m%n"					   
   164.46 PatternLayout "%C.%M.%L - %m%n"                                     
  
  Notice the small but noticable performance gain when
  ImmediateFlush=false
  
  Note also that BufferedIO yeilds similar performance to the
  ImmediateFlush case.
  
  
  
  
  
  
  
  1.1                  logging-log4j/tests/resources/history/kal1.txt
  
  Index: kal1.txt
  ===================================================================
  KAL is an Intel Pentium 4 clocked at 2.53 GHz running XP and Sun's JDK 1.4.1.
  
  Results are in microseconds.
  
  Tests are based on new LocationInfo extraction code optimized for JDK
  1.4 and later. Note the significant improvement in speed wrt to
  location info extraction.
  
  NullAppender:
  
     3.97 PatternLayout "%p - %m%n"
     3.87 PatternLayout "%-5p - %m%n"
    10.68 PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"
    10.48 PatternLayout "%r [%t] %-5p %.10c %x - %m%n"
    10.41 PatternLayout "%r [%t] %-5p %.20c %x - %m%n"
     9.18 PatternLayout "%r [%t] %-5p %c - %m%n"
    17.92 PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"
    17.92 PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
    68.13 PatternLayout "%l - %m%n"        
    75.67 PatternLayout "%C.%M.%L - %m%n"
  
  FileAppender:
  
    10.41 PatternLayout "%p - %m%n"					   
    10.34 PatternLayout "%-5p - %m%n"					   
    22.16 PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
    18.39 PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
    18.72 PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
    17.42 PatternLayout "%r [%t] %-5p %c - %m%n"				   
    28.61 PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
    27.94 PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
    87.69 PatternLayout "%l - %m%n"					   
    93.16 PatternLayout "%C.%M.%L - %m%n"                                     
  
  FileAppender: (ImmediateFlush=false)
  
     5.80 PatternLayout "%p - %m%n"					   
     5.87 PatternLayout "%-5p - %m%n"					   
    13.82 PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
    13.48 PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
    13.82 PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
    12.75 PatternLayout "%r [%t] %-5p %c - %m%n"				   
    23.03 PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
    22.46 PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
    81.98 PatternLayout "%l - %m%n"					   
    88.12 PatternLayout "%C.%M.%L - %m%n"                                     
  
  FileAppender: (BufferedIO=true)
  
     5.74 PatternLayout "%p - %m%n"					   
     5.84 PatternLayout "%-5p - %m%n"					   
    13.85 PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
    13.61 PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
    13.62 PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
    12.18 PatternLayout "%r [%t] %-5p %c - %m%n"				   
    21.83 PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
    22.1] PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
    81.01 PatternLayout "%l - %m%n"					   
    87.79 PatternLayout "%C.%M.%L - %m%n"                                     
  
  
  
  Notice the small but noticable performance gain when
  ImmediateFlush=false
  
  Note also that BufferedIO yeilds similar performance to the
  ImmediateFlush case.
  
  
  
  1.1                  logging-log4j/tests/resources/history/kal2.txt
  
  Index: kal2.txt
  ===================================================================
  KAL is an Intel Pentium 4 clocked at 2.53 GHz running XP and Sun's JDK 1.4.1.
  
  Results are in microseconds.
  
  
  NullAppender:
  
    PatternLayout "%p - %m%n"
    PatternLayout "%-5p - %m%n"
    PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"
    PatternLayout "%r [%t] %-5p %.10c %x - %m%n"
    PatternLayout "%r [%t] %-5p %.20c %x - %m%n"
    PatternLayout "%r [%t] %-5p %c - %m%n"
    PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"
    PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
    PatternLayout "%l - %m%n"        
    PatternLayout "%C.%M.%L - %m%n"
  
  FileAppender:
  
     PatternLayout "%p - %m%n"					   
     PatternLayout "%-5p - %m%n"					   
     PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %c - %m%n"				   
     PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
     PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
     PatternLayout "%l - %m%n"					   
     PatternLayout "%C.%M.%L - %m%n"                                     
  
  FileAppender: (ImmediateFlush=false)
  
     PatternLayout "%p - %m%n"					   
     PatternLayout "%-5p - %m%n"					   
     PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %c - %m%n"				   
     PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
     PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
     PatternLayout "%l - %m%n"					   
     PatternLayout "%C.%M.%L - %m%n"                                     
  
  FileAppender: (BufferedIO=true)
  
     PatternLayout "%p - %m%n"					   
     PatternLayout "%-5p - %m%n"					   
     PatternLayout "%r [%t] %-5p %c{2} %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %.10c %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %.20c %x - %m%n"			   
     PatternLayout "%r [%t] %-5p %c - %m%n"				   
     PatternLayout "%d{ISO8601} [%t] %-5p %c %x - %m%n"		   
     PatternLayout "%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"
     PatternLayout "%l - %m%n"					   
     PatternLayout "%C.%M.%L - %m%n"                                     
  
  
  
  

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