Package com.google.code.fqueue

Source Code of com.google.code.fqueue.DatabaseExceptionTest

package com.google.code.fqueue;

import com.thimbleware.jmemcached.protocol.exceptions.DatabaseException;

import junit.framework.TestCase;

public class DatabaseExceptionTest extends TestCase {
  public void testPerformance() {
    DatabaseException exception = new DatabaseException("password wrong");
    exception.printStackTrace();
    long start = System.currentTimeMillis();
    for (int i = 0; i < 10000000; i++) {
      exception = new DatabaseException("password wrong");

    }
    System.out.println("spend:" + (System.currentTimeMillis() - start)
        + "ms");
  }
}
TOP

Related Classes of com.google.code.fqueue.DatabaseExceptionTest

TOP
Copyright © 2018 www.massapi.com. 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.