Skip to content

Instantly share code, notes, and snippets.

@volkov
Created December 15, 2016 12:23
Show Gist options
  • Save volkov/8fadf1425957542b7ca678e0d5f91cd1 to your computer and use it in GitHub Desktop.
Save volkov/8fadf1425957542b7ca678e0d5f91cd1 to your computer and use it in GitHub Desktop.
public class PerfomanceTesting {
public static void main(String[] args) throws SQLException {
final TestDao testDao = new TestDao();
try {
long start = System.currentTimeMillis();
for (int i = 0; i < 1000; i++) {
testDao.doUpdate();
}
System.out.println("update done in " + (System.currentTimeMillis() - start));
} finally {
testDao.close();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment