Package com.dianping.cat.consumer.matrix

Examples of com.dianping.cat.consumer.matrix.MatrixAnalyzer


public class MatrixPerformanceTest extends ComponentTestCase {

  @Test
  public void test() throws Exception {
    MatrixAnalyzer analyzer = (MatrixAnalyzer)lookup(MessageAnalyzer.class,MatrixAnalyzer.ID);
    MessageTree tree = buildMessage();

    long current = System.currentTimeMillis();

    int size = 10000000;
    for (int i = 0; i < size; i++) {
      analyzer.process(tree);
    }
    System.out.println(analyzer.getReport("cat"));
    System.out.println("Cost " + (System.currentTimeMillis() - current) / 1000);
    //21
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.matrix.MatrixAnalyzer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.