ch.qos.logback.classic.net
Class SerializationPerfsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by ch.qos.logback.classic.net.SerializationPerfsTest
All Implemented Interfaces:
junit.framework.Test

public class SerializationPerfsTest
extends junit.framework.TestCase


Constructor Summary
SerializationPerfsTest()
           
 
Method Summary
 void runPerfTest(Builder builder, String label)
           
 void setUp()
          Last results: Data sent mesured in kilobytes.
 void tearDown()
           
 void testWithMinimalSerialization()
           
 void testWithSerialization()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializationPerfsTest

public SerializationPerfsTest()
Method Detail

setUp

public void setUp()
           throws Exception
Last results: Data sent mesured in kilobytes. Avg time mesured in microsecs. NOPOutputStream: | | Runs | Avg time | Data sent | | MinimalObj Ext | 10000 | | | | MinimalObj Ser | 10000 | | | | LoggEvent Ext | 10000 | | | | LoggEvent Ser | 10000 | | | External MockServer with 45 letters-long message: on localhost (always the same message) | | Runs | Avg time | Data sent | | MinimalObj Ext | 10000 | - | - | | MinimalObj Ser | 10000 | 74 | 248 | | LoggEvent Ext | 10000 | - | - | | LoggEvent Ser | 10000 | 156 | 835 | pauseFrequency = 10 and pauseLengthInMillis = 20 External MockServer with 45 letters-long message: on localhost (different message each time) | | Runs | Avg time | Data sent | | MinimalObj Ext | 10000 | | | | MinimalObj Ser | 10000 | 73 | 1139 | | LoggEvent Ext | 10000 | | | | LoggEvent Ser | 10000 | 162 | 1752 | pauseFrequency = 10 and pauseLengthInMillis = 20 External MockServer with 45 letters-long message: on PIXIE (always the same message) | | Runs | Avg time | Data sent | | MinimalObj Ext | 10000 | - | - | | MinimalObj Ser | 10000 | 29 | 248 | | LoggEvent Ext | 10000 | - | - | | LoggEvent Ser | 10000 | 42 | 835 | pauseFrequency = 10 and pauseLengthInMillis = 20 External MockServer with 45 letters-long message: on PIXIE (different message each time) | | Runs | Avg time | Data sent | | MinimalObj Ext | 10000 | | | | MinimalObj Ser | 10000 | 27 | 1139 | | LoggEvent Ext | 10000 | | | | LoggEvent Ser | 10000 | 44 | 1752 | pauseFrequency = 10 and pauseLengthInMillis = 20

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

runPerfTest

public void runPerfTest(Builder builder,
                        String label)
                 throws Exception
Throws:
Exception

testWithMinimalSerialization

public void testWithMinimalSerialization()
                                  throws Exception
Throws:
Exception

testWithSerialization

public void testWithSerialization()
                           throws Exception
Throws:
Exception


Copyright © 2005-2009 QOS.ch. All Rights Reserved.