Package com.thimbleware.jmemcached.protocol.exceptions

Examples of 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");
  }
View Full Code Here

TOP

Related Classes of com.thimbleware.jmemcached.protocol.exceptions.DatabaseException

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.