public class TransactionPerformanceTest extends ComponentTestCase{
@Test
public void test() throws Exception {
TransactionAnalyzer analyzer = (TransactionAnalyzer) lookup(MessageAnalyzer.class, TransactionAnalyzer.ID);
MessageTree tree = buildMessage();
long current = System.currentTimeMillis();
long size = 10000000000l;
for (int i = 0; i < size; i++) {
analyzer.process(tree);
}
System.out.println(analyzer.getReport("cat"));
System.out.println("Cost " + (System.currentTimeMillis() - current) / 1000);
//cost 62
}