public static void testPerf2(Object o, int iters) {
try {
TimeTracker.startClock("s");
byte[] b = null;
MinaStructPacker out = new MinaStructPacker();
for (int i = 0; i < iters; i++) {
b = out.pack(o);
out.reset();
}
System.out.println("(" + o.getClass().getName()
+ ") Packing performance: "
+ TimeTracker.getItemCountPerSecond("s", iters));
System.out.println("Size: " + b.length);