bb.util
Class MemoryMeasurer.UnitTest
java.lang.Object
bb.util.MemoryMeasurer.UnitTest
- Enclosing class:
- MemoryMeasurer
public static class MemoryMeasurer.UnitTest
- extends Object
See the Overview page of the project's javadocs for a general description of this unit test class.
Method Summary |
private static void |
printMemoryState(MemoryState state)
|
void |
test_getMemoryState()
|
void |
test_perform_Date()
Results on 2009-06-10 (2.5 GHz Xeon E5420 desktop, jdk 1.6.0_14 server jvm):
each array element of a Date uses 28.398416 bytes
which implies that just a Date uses 24.398416 bytes (since the size of the reference in the array is 4 bytes)
|
void |
test_perform_Object()
Results on 2009-06-10 (2.5 GHz Xeon E5420 desktop, jdk 1.6.0_14 server jvm):
each array element of an Object uses 12.000016 bytes
which implies that just an Object uses 8.000016 bytes (since the size of the reference in the array is 4 bytes)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fillPoint
private static final double fillPoint
- See Also:
- Constant Field Values
arraySize
private static final int arraySize
- See Also:
- Constant Field Values
MemoryMeasurer.UnitTest
public MemoryMeasurer.UnitTest()
test_getMemoryState
public void test_getMemoryState()
throws Exception
- Throws:
Exception
printMemoryState
private static void printMemoryState(MemoryState state)
test_perform_Object
public void test_perform_Object()
throws Exception
- Results on 2009-06-10 (2.5 GHz Xeon E5420 desktop, jdk 1.6.0_14 server jvm):
each array element of an Object uses 12.000016 bytes
which implies that just an Object uses 8.000016 bytes (since the size of the reference in the array is 4 bytes)
- Throws:
Exception
test_perform_Date
public void test_perform_Date()
throws Exception
- Results on 2009-06-10 (2.5 GHz Xeon E5420 desktop, jdk 1.6.0_14 server jvm):
each array element of a Date uses 28.398416 bytes
which implies that just a Date uses 24.398416 bytes (since the size of the reference in the array is 4 bytes)
- Throws:
Exception