public void testPerformance() throws LockingException
{
long start = System.currentTimeMillis();
for (int i = 0; i < ITERATIONS; i++)
{
TestClassA tca = generateTestData();
TestClassB tcb = tca.getB();
TestClassA copy = (TestClassA) m_scs.copy(tca, m_pb);
}
long stop = System.currentTimeMillis();
System.out.println("testSerializedCopy took: " + (stop - start));
start = System.currentTimeMillis();
for (int i = 0; i < ITERATIONS; i++)
{
TestClassA tca = generateTestData();
TestClassB tcb = tca.getB();
TestClassA copy = (TestClassA) m_mdcs.copy(tca, m_pb);
}
stop = System.currentTimeMillis();
System.out.println("testMetadataCopy took: " + (stop - start));
start = System.currentTimeMillis();
for (int i = 0; i < ITERATIONS; i++)
{
TestClassA tca = generateTestData();
TestClassB tcb = tca.getB();
TestClassA copy = (TestClassA) m_rcs.copy(tca, m_pb);
}
stop = System.currentTimeMillis();
System.out.println("testReflectiveCopy took: " + (stop - start));
}