System.exit(0);
}
}
}
ArjunaTransactionImple tx = null;
// Run ten interations first.
for (int i = 0; i < 10; i++)
{
tx = new ArjunaTransactionImple((Control) null, (ArjunaTransactionImple) null);
if (doCommit)
tx.commit(true);
else
tx.rollback();
}
// Record the start time.
Date startTime = new Date();
// Run 1000 interations.
for (int i = 0; i < iters; i++)
{
tx = new ArjunaTransactionImple((Control) null, (ArjunaTransactionImple) null);
if (doCommit)
tx.commit(true);
else
tx.rollback();
}
// Record the end time.
Date endTime = new Date();